home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Non-ISO extended-ASCII text, with CR line terminators
| default (weak)
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 65 63 65 69 76 65 64 | 2d 44 61 74 65 3a 20 54 |Received|-Date: T|
|00000010| 68 75 2c 20 32 39 20 53 | 65 70 20 31 39 39 34 20 |hu, 29 S|ep 1994 |
|00000020| 31 38 3a 33 36 3a 33 34 | 20 2b 30 31 30 30 0d 46 |18:36:34| +0100.F|
|00000030| 72 6f 6d 3a 20 70 6f 74 | 74 69 65 72 40 63 6c 69 |rom: pot|tier@cli|
|00000040| 70 70 65 72 2e 65 6e 73 | 2e 66 72 20 28 46 72 61 |pper.ens|.fr (Fra|
|00000050| 6e 63 6f 69 73 20 50 6f | 74 74 69 65 72 29 0d 53 |ncois Po|ttier).S|
|00000060| 75 62 6a 65 63 74 3a 20 | 63 73 6d 70 2d 64 69 67 |ubject: |csmp-dig|
|00000070| 65 73 74 2d 76 33 2d 30 | 36 31 0d 54 6f 3a 20 63 |est-v3-0|61.To: c|
|00000080| 73 6d 70 2d 64 69 67 65 | 73 74 40 65 6e 73 2e 66 |smp-dige|st@ens.f|
|00000090| 72 0d 44 61 74 65 3a 20 | 54 68 75 2c 20 32 39 20 |r.Date: |Thu, 29 |
|000000a0| 53 65 70 20 31 39 39 34 | 20 31 38 3a 33 36 3a 32 |Sep 1994| 18:36:2|
|000000b0| 34 20 2b 30 31 30 30 20 | 28 4d 45 54 29 0d 58 2d |4 +0100 |(MET).X-|
|000000c0| 4d 61 69 6c 65 72 3a 20 | 45 4c 4d 20 5b 76 65 72 |Mailer: |ELM [ver|
|000000d0| 73 69 6f 6e 20 32 2e 34 | 20 50 4c 32 33 5d 0d 4d |sion 2.4| PL23].M|
|000000e0| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|000000f0| 0d 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|00000100| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|00000110| 65 74 3d 49 53 4f 2d 38 | 38 35 39 2d 31 0d 43 6f |et=ISO-8|859-1.Co|
|00000120| 6e 74 65 6e 74 2d 54 72 | 61 6e 73 66 65 72 2d 45 |ntent-Tr|ansfer-E|
|00000130| 6e 63 6f 64 69 6e 67 3a | 20 38 62 69 74 0d 45 72 |ncoding:| 8bit.Er|
|00000140| 72 6f 72 73 2d 54 6f 3a | 20 6c 69 73 74 6d 61 6e |rors-To:| listman|
|00000150| 40 65 6e 73 2e 66 72 0d | 52 65 70 6c 79 2d 54 6f |@ens.fr.|Reply-To|
|00000160| 3a 20 70 6f 74 74 69 65 | 72 40 63 6c 69 70 70 65 |: pottie|r@clippe|
|00000170| 72 2e 65 6e 73 2e 66 72 | 0d 58 2d 53 65 71 75 65 |r.ens.fr|.X-Seque|
|00000180| 6e 63 65 3a 20 36 36 0d | 0d 43 2e 53 2e 4d 2e 50 |nce: 66.|.C.S.M.P|
|00000190| 2e 20 44 69 67 65 73 74 | 20 20 20 20 20 20 20 20 |. Digest| |
|000001a0| 20 20 20 20 20 54 68 75 | 2c 20 32 39 20 53 65 70 | Thu|, 29 Sep|
|000001b0| 20 39 34 20 20 20 20 20 | 20 20 56 6f 6c 75 6d 65 | 94 | Volume|
|000001c0| 20 33 20 3a 20 49 73 73 | 75 65 20 36 31 0d 20 0d | 3 : Iss|ue 61. .|
|000001d0| 54 6f 64 61 79 27 73 20 | 54 6f 70 69 63 73 3a 0d |Today's |Topics:.|
|000001e0| 20 0d 20 20 20 20 20 20 | 20 20 41 6c 70 68 61 20 | . | Alpha |
|000001f0| 57 6f 72 64 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 53 |Wordcomp|letion S|
|00000200| 63 72 69 70 74 0d 20 20 | 20 20 20 20 20 20 41 70 |cript. | Ap|
|00000210| 70 65 6e 64 69 6e 67 20 | 64 61 74 61 20 74 6f 20 |pending |data to |
|00000220| 57 69 6e 64 6f 77 52 65 | 63 6f 72 64 0d 20 20 20 |WindowRe|cord. |
|00000230| 20 20 20 20 20 44 69 61 | 6c 6f 67 73 20 61 6e 64 | Dia|logs and|
|00000240| 20 28 64 65 29 61 63 74 | 69 76 61 74 65 20 65 76 | (de)act|ivate ev|
|00000250| 65 6e 74 73 0d 20 20 20 | 20 20 20 20 20 4c 65 74 |ents. | Let|
|00000260| 73 20 74 61 6c 6b 20 4f | 70 65 6e 44 6f 63 0d 20 |s talk O|penDoc. |
|00000270| 20 20 20 20 20 20 20 4c | 69 6e 6b 69 6e 67 20 77 | L|inking w|
|00000280| 69 74 68 20 51 75 69 63 | 6b 54 69 6d 65 2e 78 63 |ith Quic|kTime.xc|
|00000290| 6f 66 66 20 66 6f 72 20 | 74 68 65 20 70 6f 77 65 |off for |the powe|
|000002a0| 72 20 70 63 0d 20 20 20 | 20 20 20 20 20 4d 75 6c |r pc. | Mul|
|000002b0| 74 69 70 6c 65 20 6d 6f | 6e 69 74 6f 72 73 0d 20 |tiple mo|nitors. |
|000002c0| 20 20 20 20 20 20 20 54 | 68 65 20 27 61 65 74 65 | T|he 'aete|
|000002d0| 27 20 72 65 73 6f 75 72 | 63 65 20 61 6e 64 20 74 |' resour|ce and t|
|000002e0| 68 65 20 53 63 72 69 70 | 74 20 45 64 69 74 6f 72 |he Scrip|t Editor|
|000002f0| 0d 20 20 20 20 20 20 20 | 20 63 61 6e 20 65 78 74 |. | can ext|
|00000300| 65 6e 73 69 6f 6e 73 20 | 73 65 6e 64 20 61 70 70 |ensions |send app|
|00000310| 6c 65 65 76 65 6e 74 73 | 3f 0d 0d 0d 0d 54 68 65 |leevents|?....The|
|00000320| 20 43 6f 6d 70 2e 53 79 | 73 2e 4d 61 63 2e 50 72 | Comp.Sy|s.Mac.Pr|
|00000330| 6f 67 72 61 6d 6d 65 72 | 20 44 69 67 65 73 74 20 |ogrammer| Digest |
|00000340| 69 73 20 6d 6f 64 65 72 | 61 74 65 64 20 62 79 20 |is moder|ated by |
|00000350| 46 72 61 6e 63 6f 69 73 | 20 50 6f 74 74 69 65 72 |Francois| Pottier|
|00000360| 0d 28 70 6f 74 74 69 65 | 72 40 63 6c 69 70 70 65 |.(pottie|r@clippe|
|00000370| 72 2e 65 6e 73 2e 66 72 | 29 2e 0d 20 0d 54 68 65 |r.ens.fr|).. .The|
|00000380| 20 64 69 67 65 73 74 20 | 69 73 20 61 20 63 6f 6c | digest |is a col|
|00000390| 6c 65 63 74 69 6f 6e 20 | 6f 66 20 61 72 74 69 63 |lection |of artic|
|000003a0| 6c 65 20 74 68 72 65 61 | 64 73 20 66 72 6f 6d 20 |le threa|ds from |
|000003b0| 74 68 65 20 69 6e 74 65 | 72 6e 65 74 20 6e 65 77 |the inte|rnet new|
|000003c0| 73 67 72 6f 75 70 0d 63 | 6f 6d 70 2e 73 79 73 2e |sgroup.c|omp.sys.|
|000003d0| 6d 61 63 2e 70 72 6f 67 | 72 61 6d 6d 65 72 2e 20 |mac.prog|rammer. |
|000003e0| 20 49 74 20 69 73 20 64 | 65 73 69 67 6e 65 64 20 | It is d|esigned |
|000003f0| 66 6f 72 20 70 65 6f 70 | 6c 65 20 77 68 6f 20 72 |for peop|le who r|
|00000400| 65 61 64 20 63 2e 73 2e | 6d 2e 70 2e 20 73 65 6d |ead c.s.|m.p. sem|
|00000410| 69 2d 0d 72 65 67 75 6c | 61 72 6c 79 20 61 6e 64 |i-.regul|arly and|
|00000420| 20 77 61 6e 74 20 61 6e | 20 61 72 63 68 69 76 65 | want an| archive|
|00000430| 20 6f 66 20 74 68 65 20 | 64 69 73 63 75 73 73 69 | of the |discussi|
|00000440| 6f 6e 73 2e 20 20 49 66 | 20 79 6f 75 20 64 6f 6e |ons. If| you don|
|00000450| 27 74 20 6b 6e 6f 77 20 | 77 68 61 74 20 61 0d 6e |'t know |what a.n|
|00000460| 65 77 73 67 72 6f 75 70 | 20 69 73 2c 20 79 6f 75 |ewsgroup| is, you|
|00000470| 20 70 72 6f 62 61 62 6c | 79 20 64 6f 6e 27 74 20 | probabl|y don't |
|00000480| 68 61 76 65 20 61 63 63 | 65 73 73 20 74 6f 20 69 |have acc|ess to i|
|00000490| 74 2e 20 20 41 73 6b 20 | 79 6f 75 72 20 73 79 73 |t. Ask |your sys|
|000004a0| 74 65 6d 73 0d 61 64 6d | 69 6e 69 73 74 72 61 74 |tems.adm|inistrat|
|000004b0| 6f 72 28 73 29 20 66 6f | 72 20 64 65 74 61 69 6c |or(s) fo|r detail|
|000004c0| 73 2e 20 20 49 66 20 79 | 6f 75 20 64 6f 6e 27 74 |s. If y|ou don't|
|000004d0| 20 68 61 76 65 20 61 63 | 63 65 73 73 20 74 6f 20 | have ac|cess to |
|000004e0| 6e 65 77 73 2c 20 79 6f | 75 20 6d 61 79 0d 73 74 |news, yo|u may.st|
|000004f0| 69 6c 6c 20 62 65 20 61 | 62 6c 65 20 74 6f 20 70 |ill be a|ble to p|
|00000500| 6f 73 74 20 6d 65 73 73 | 61 67 65 73 20 74 6f 20 |ost mess|ages to |
|00000510| 74 68 65 20 67 72 6f 75 | 70 20 62 79 20 75 73 69 |the grou|p by usi|
|00000520| 6e 67 20 61 20 6d 61 69 | 6c 20 73 65 72 76 65 72 |ng a mai|l server|
|00000530| 20 6c 69 6b 65 0d 61 6e | 6f 6e 2e 70 65 6e 65 74 | like.an|on.penet|
|00000540| 2e 66 69 20 28 6d 61 69 | 6c 20 68 65 6c 70 40 61 |.fi (mai|l help@a|
|00000550| 6e 6f 6e 2e 70 65 6e 65 | 74 2e 66 69 20 66 6f 72 |non.pene|t.fi for|
|00000560| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00000570| 6e 29 2e 0d 20 0d 45 61 | 63 68 20 69 73 73 75 65 |n).. .Ea|ch issue|
|00000580| 20 6f 66 20 74 68 65 20 | 64 69 67 65 73 74 20 63 | of the |digest c|
|00000590| 6f 6e 74 61 69 6e 73 20 | 6f 6e 65 20 6f 72 20 6d |ontains |one or m|
|000005a0| 6f 72 65 20 73 65 74 73 | 20 6f 66 20 61 72 74 69 |ore sets| of arti|
|000005b0| 63 6c 65 73 20 28 63 61 | 6c 6c 65 64 0d 74 68 72 |cles (ca|lled.thr|
|000005c0| 65 61 64 73 29 2c 20 77 | 69 74 68 20 65 61 63 68 |eads), w|ith each|
|000005d0| 20 73 65 74 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | set cor|respondi|
|000005e0| 6e 67 20 74 6f 20 61 20 | 27 64 69 73 63 75 73 73 |ng to a |'discuss|
|000005f0| 69 6f 6e 27 20 6f 66 20 | 61 20 70 61 72 74 69 63 |ion' of |a partic|
|00000600| 75 6c 61 72 0d 73 75 62 | 6a 65 63 74 2e 20 20 54 |ular.sub|ject. T|
|00000610| 68 65 20 61 72 74 69 63 | 6c 65 73 20 61 72 65 20 |he artic|les are |
|00000620| 6e 6f 74 20 65 64 69 74 | 65 64 3b 20 61 6c 6c 20 |not edit|ed; all |
|00000630| 61 72 74 69 63 6c 65 73 | 20 69 6e 63 6c 75 64 65 |articles| include|
|00000640| 64 20 69 6e 20 74 68 69 | 73 20 64 69 67 65 73 74 |d in thi|s digest|
|00000650| 0d 61 72 65 20 69 6e 20 | 74 68 65 69 72 20 6f 72 |.are in |their or|
|00000660| 69 67 69 6e 61 6c 20 70 | 6f 73 74 65 64 20 66 6f |iginal p|osted fo|
|00000670| 72 6d 20 28 61 73 20 72 | 65 63 65 69 76 65 64 20 |rm (as r|eceived |
|00000680| 62 79 20 6f 75 72 20 6e | 65 77 73 20 73 65 72 76 |by our n|ews serv|
|00000690| 65 72 20 61 74 0d 6e 65 | 66 2e 65 6e 73 2e 66 72 |er at.ne|f.ens.fr|
|000006a0| 29 2e 20 20 41 72 74 69 | 63 6c 65 20 74 68 72 65 |). Arti|cle thre|
|000006b0| 61 64 73 20 61 72 65 20 | 6e 6f 74 20 61 64 64 65 |ads are |not adde|
|000006c0| 64 20 74 6f 20 74 68 65 | 20 64 69 67 65 73 74 20 |d to the| digest |
|000006d0| 75 6e 74 69 6c 20 74 68 | 65 20 6c 61 73 74 0d 61 |until th|e last.a|
|000006e0| 72 74 69 63 6c 65 20 61 | 64 64 65 64 20 74 6f 20 |rticle a|dded to |
|000006f0| 74 68 65 20 74 68 72 65 | 61 64 20 69 73 20 61 74 |the thre|ad is at|
|00000700| 20 6c 65 61 73 74 20 74 | 77 6f 20 77 65 65 6b 73 | least t|wo weeks|
|00000710| 20 6f 6c 64 20 28 74 68 | 69 73 20 69 73 20 74 6f | old (th|is is to|
|00000720| 20 65 6e 73 75 72 65 20 | 74 68 61 74 0d 74 68 65 | ensure |that.the|
|00000730| 20 74 68 72 65 61 64 20 | 69 73 20 64 65 61 64 20 | thread |is dead |
|00000740| 62 65 66 6f 72 65 20 61 | 64 64 69 6e 67 20 69 74 |before a|dding it|
|00000750| 20 74 6f 20 74 68 65 20 | 64 69 67 65 73 74 29 2e | to the |digest).|
|00000760| 20 20 41 72 74 69 63 6c | 65 20 74 68 72 65 61 64 | Articl|e thread|
|00000770| 73 20 74 68 61 74 0d 63 | 6f 6e 73 69 73 74 20 6f |s that.c|onsist o|
|00000780| 66 20 6f 6e 6c 79 20 6f | 6e 65 20 6d 65 73 73 61 |f only o|ne messa|
|00000790| 67 65 20 61 72 65 20 67 | 65 6e 65 72 61 6c 6c 79 |ge are g|enerally|
|000007a0| 20 6e 6f 74 20 69 6e 63 | 6c 75 64 65 64 20 69 6e | not inc|luded in|
|000007b0| 20 74 68 65 20 64 69 67 | 65 73 74 2e 0d 0d 54 68 | the dig|est...Th|
|000007c0| 65 20 64 69 67 65 73 74 | 20 69 73 20 6f 66 66 69 |e digest| is offi|
|000007d0| 63 69 61 6c 6c 79 20 64 | 69 73 74 72 69 62 75 74 |cially d|istribut|
|000007e0| 65 64 20 62 79 20 74 77 | 6f 20 6d 65 61 6e 73 2c |ed by tw|o means,|
|000007f0| 20 62 79 20 65 6d 61 69 | 6c 20 61 6e 64 20 66 74 | by emai|l and ft|
|00000800| 70 2e 0d 0d 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |p...If y|ou want |
|00000810| 74 6f 20 72 65 63 65 69 | 76 65 20 74 68 65 20 64 |to recei|ve the d|
|00000820| 69 67 65 73 74 20 62 79 | 20 6d 61 69 6c 2c 20 73 |igest by| mail, s|
|00000830| 65 6e 64 20 65 6d 61 69 | 6c 20 74 6f 20 6c 69 73 |end emai|l to lis|
|00000840| 74 73 65 72 76 40 65 6e | 73 2e 66 72 0d 77 69 74 |tserv@en|s.fr.wit|
|00000850| 68 20 6e 6f 20 73 75 62 | 6a 65 63 74 20 61 6e 64 |h no sub|ject and|
|00000860| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 66 6f 6c 6c | one of |the foll|
|00000870| 6f 77 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 61 |owing co|mmands a|
|00000880| 73 20 62 6f 64 79 3a 0d | 20 20 20 20 68 65 6c 70 |s body:.| help|
|00000890| 09 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000008a0| 20 20 53 65 6e 64 73 20 | 79 6f 75 20 61 20 73 75 | Sends |you a su|
|000008b0| 6d 6d 61 72 79 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |mmary of| command|
|000008c0| 73 0d 20 20 20 20 73 75 | 62 73 63 72 69 62 65 20 |s. su|bscribe |
|000008d0| 63 73 6d 70 2d 64 69 67 | 65 73 74 20 59 6f 75 72 |csmp-dig|est Your|
|000008e0| 20 4e 61 6d 65 09 41 64 | 64 73 20 79 6f 75 20 74 | Name.Ad|ds you t|
|000008f0| 6f 20 74 68 65 20 6d 61 | 69 6c 69 6e 67 20 6c 69 |o the ma|iling li|
|00000900| 73 74 0d 20 20 20 20 73 | 69 67 6e 6f 66 66 20 63 |st. s|ignoff c|
|00000910| 73 6d 70 2d 64 69 67 65 | 73 74 09 09 09 52 65 6d |smp-dige|st...Rem|
|00000920| 6f 76 65 73 20 79 6f 75 | 20 66 72 6f 6d 20 74 68 |oves you| from th|
|00000930| 65 20 6c 69 73 74 0d 4f | 6e 63 65 20 79 6f 75 20 |e list.O|nce you |
|00000940| 68 61 76 65 20 73 75 62 | 73 63 72 69 62 65 64 2c |have sub|scribed,|
|00000950| 20 79 6f 75 20 77 69 6c | 6c 20 61 75 74 6f 6d 61 | you wil|l automa|
|00000960| 74 69 63 61 6c 6c 79 20 | 72 65 63 65 69 76 65 20 |tically |receive |
|00000970| 65 61 63 68 20 6e 65 77 | 0d 69 73 73 75 65 20 61 |each new|.issue a|
|00000980| 73 20 69 74 20 69 73 20 | 63 72 65 61 74 65 64 2e |s it is |created.|
|00000990| 0d 0d 54 68 65 20 6f 66 | 66 69 63 69 61 6c 20 66 |..The of|ficial f|
|000009a0| 74 70 20 69 6e 66 6f 20 | 69 73 20 2f 2f 66 74 70 |tp info |is //ftp|
|000009b0| 2e 64 61 72 74 6d 6f 75 | 74 68 2e 65 64 75 2f 70 |.dartmou|th.edu/p|
|000009c0| 75 62 2f 63 73 6d 70 2d | 64 69 67 65 73 74 2e 0d |ub/csmp-|digest..|
|000009d0| 51 75 65 73 74 69 6f 6e | 73 20 72 65 6c 61 74 65 |Question|s relate|
|000009e0| 64 20 74 6f 20 74 68 65 | 20 66 74 70 20 73 69 74 |d to the| ftp sit|
|000009f0| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 64 69 72 65 |e should| be dire|
|00000a00| 63 74 65 64 20 74 6f 0d | 73 63 6f 74 74 2e 73 69 |cted to.|scott.si|
|00000a10| 6c 76 65 72 40 64 61 72 | 74 6d 6f 75 74 68 2e 65 |lver@dar|tmouth.e|
|00000a20| 64 75 2e 20 43 75 72 72 | 65 6e 74 6c 79 20 6e 6f |du. Curr|ently no|
|00000a30| 20 70 72 65 76 69 6f 75 | 73 20 76 6f 6c 75 6d 65 | previou|s volume|
|00000a40| 73 20 6f 66 20 74 68 65 | 20 43 53 4d 50 0d 64 69 |s of the| CSMP.di|
|00000a50| 67 65 73 74 20 61 72 65 | 20 61 76 61 69 6c 61 62 |gest are| availab|
|00000a60| 6c 65 20 74 68 65 72 65 | 2e 0d 0d 41 6c 73 6f 2c |le there|...Also,|
|00000a70| 20 74 68 65 20 64 69 67 | 65 73 74 73 20 61 72 65 | the dig|ests are|
|00000a80| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 57 41 | availab|le to WA|
|00000a90| 49 53 20 75 73 65 72 73 | 2e 20 20 54 6f 20 73 65 |IS users|. To se|
|00000aa0| 61 72 63 68 20 62 61 63 | 6b 20 69 73 73 75 65 73 |arch bac|k issues|
|00000ab0| 0d 77 69 74 68 20 57 41 | 49 53 2c 20 75 73 65 20 |.with WA|IS, use |
|00000ac0| 63 6f 6d 70 2e 73 79 73 | 2e 6d 61 63 2e 70 72 6f |comp.sys|.mac.pro|
|00000ad0| 67 72 61 6d 6d 65 72 2e | 73 72 63 2e 20 57 69 74 |grammer.|src. Wit|
|00000ae0| 68 20 4d 6f 73 61 69 63 | 2c 20 75 73 65 0d 68 74 |h Mosaic|, use.ht|
|00000af0| 74 70 3a 2f 2f 77 77 77 | 2e 77 61 69 73 2e 63 6f |tp://www|.wais.co|
|00000b00| 6d 2f 77 61 69 73 2d 64 | 62 73 2f 63 6f 6d 70 2e |m/wais-d|bs/comp.|
|00000b10| 73 79 73 2e 6d 61 63 2e | 70 72 6f 67 72 61 6d 6d |sys.mac.|programm|
|00000b20| 65 72 2e 68 74 6d 6c 2e | 0d 0d 0d 2d 2d 2d 2d 2d |er.html.|...-----|
|00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b60| 2d 2d 0d 0d 3e 46 72 6f | 6d 20 74 6e 6c 65 65 75 |--..>Fro|m tnleeu|
|00000b70| 77 40 63 73 2e 76 75 2e | 6e 6c 20 28 4c 65 65 75 |w@cs.vu.|nl (Leeu|
|00000b80| 77 20 76 61 6e 20 64 65 | 72 20 54 4e 29 0d 53 75 |w van de|r TN).Su|
|00000b90| 62 6a 65 63 74 3a 20 41 | 6c 70 68 61 20 57 6f 72 |bject: A|lpha Wor|
|00000ba0| 64 63 6f 6d 70 6c 65 74 | 69 6f 6e 20 53 63 72 69 |dcomplet|ion Scri|
|00000bb0| 70 74 0d 44 61 74 65 3a | 20 54 68 75 2c 20 31 35 |pt.Date:| Thu, 15|
|00000bc0| 20 53 65 70 20 31 39 39 | 34 20 31 32 3a 30 39 3a | Sep 199|4 12:09:|
|00000bd0| 31 32 20 47 4d 54 0d 4f | 72 67 61 6e 69 7a 61 74 |12 GMT.O|rganizat|
|00000be0| 69 6f 6e 3a 20 46 61 63 | 2e 20 57 69 73 6b 75 6e |ion: Fac|. Wiskun|
|00000bf0| 64 65 20 26 20 49 6e 66 | 6f 72 6d 61 74 69 63 61 |de & Inf|ormatica|
|00000c00| 2c 20 56 55 2c 20 41 6d | 73 74 65 72 64 61 6d 0d |, VU, Am|sterdam.|
|00000c10| 0d 23 54 68 69 73 20 69 | 73 20 61 20 54 63 6c 20 |.#This i|s a Tcl |
|00000c20| 27 73 63 72 69 70 74 27 | 2f 70 72 6f 63 65 64 75 |'script'|/procedu|
|00000c30| 72 65 20 66 6f 72 20 75 | 73 65 20 77 69 74 68 20 |re for u|se with |
|00000c40| 50 65 74 65 20 4b 65 6c | 65 68 65 72 27 73 20 41 |Pete Kel|eher's A|
|00000c50| 6c 70 68 61 2e 0d 23 49 | 74 20 63 6f 6d 70 6c 65 |lpha..#I|t comple|
|00000c60| 74 65 73 20 61 6e 79 20 | 77 6f 72 64 20 79 6f 75 |tes any |word you|
|00000c70| 20 68 61 76 65 20 74 79 | 70 65 64 20 70 72 65 76 | have ty|ped prev|
|00000c80| 69 6f 75 73 6c 79 20 69 | 66 20 79 6f 75 20 62 69 |iously i|f you bi|
|00000c90| 6e 64 20 69 74 20 74 6f | 20 61 20 6b 65 79 2e 0d |nd it to| a key..|
|00000ca0| 23 28 49 20 68 61 76 65 | 20 69 74 20 62 6f 75 6e |#(I have| it boun|
|00000cb0| 64 20 74 6f 20 6f 70 74 | 2d 2f 20 74 6f 20 73 69 |d to opt|-/ to si|
|00000cc0| 6d 75 6c 61 74 65 20 65 | 6d 61 63 73 27 20 61 6c |mulate e|macs' al|
|00000cd0| 74 2d 2f 29 0d 23 53 65 | 65 20 74 68 65 20 63 6f |t-/).#Se|e the co|
|00000ce0| 6d 6d 65 6e 74 73 20 62 | 65 6c 6f 77 20 66 6f 72 |mments b|elow for|
|00000cf0| 20 73 6f 6d 65 20 6d 6f | 72 65 20 69 6e 66 6f 2e | some mo|re info.|
|00000d00| 20 49 27 76 65 20 74 65 | 73 74 65 64 20 69 74 20 | I've te|sted it |
|00000d10| 61 73 20 67 6f 6f 64 20 | 61 73 20 49 0d 23 63 61 |as good |as I.#ca|
|00000d20| 6e 2c 20 62 75 74 20 63 | 61 6e 6e 6f 74 20 67 75 |n, but c|annot gu|
|00000d30| 61 72 61 6e 74 65 65 20 | 69 74 20 69 73 20 62 75 |arantee |it is bu|
|00000d40| 67 20 66 72 65 65 2e 20 | 49 74 20 68 61 64 20 73 |g free. |It had s|
|00000d50| 6f 6d 65 20 62 75 67 73 | 20 74 68 61 74 20 61 70 |ome bugs| that ap|
|00000d60| 70 65 61 72 65 64 0d 23 | 74 6f 20 63 72 61 73 68 |peared.#|to crash|
|00000d70| 20 41 6c 70 68 61 20 62 | 65 63 61 75 73 65 20 69 | Alpha b|ecause i|
|00000d80| 74 20 63 61 6d 65 20 69 | 6e 74 6f 20 61 6e 20 65 |t came i|nto an e|
|00000d90| 6e 64 6c 65 73 73 20 6c | 6f 6f 70 3b 20 70 72 65 |ndless l|oop; pre|
|00000da0| 73 73 20 63 6d 64 2d 2e | 20 69 66 0d 23 74 68 61 |ss cmd-.| if.#tha|
|00000db0| 74 20 68 61 70 70 65 6e | 73 2e 20 49 20 64 6f 6e |t happen|s. I don|
|00000dc0| 27 74 20 74 68 69 6e 6b | 20 69 74 20 77 69 6c 6c |'t think| it will|
|00000dd0| 2e 0d 0d 23 49 66 20 79 | 6f 75 20 75 73 65 20 41 |...#If y|ou use A|
|00000de0| 6c 70 68 61 2c 20 74 68 | 65 6e 20 48 61 76 65 20 |lpha, th|en Have |
|00000df0| 6c 75 63 6b 20 77 69 74 | 68 20 69 74 21 0d 23 2d |luck wit|h it!.#-|
|00000e00| 2d 54 69 6d 20 76 61 6e | 20 64 65 72 20 4c 65 65 |-Tim van| der Lee|
|00000e10| 75 77 0d 23 20 20 74 6e | 6c 65 65 75 77 40 63 73 |uw.# tn|leeuw@cs|
|00000e20| 2e 76 75 2e 6e 6c 0d 23 | 3d 3d 3d 3d 3d 3d 3d 3d |.vu.nl.#|========|
|00000e30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000e40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000e50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000e60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000e70| 3d 3d 3d 0d 23 20 27 57 | 6f 72 64 20 43 6f 6d 70 |===.# 'W|ord Comp|
|00000e80| 6c 65 74 69 6f 6e 27 2c | 20 69 6e 20 74 68 65 20 |letion',| in the |
|00000e90| 73 70 69 72 69 74 20 6f | 66 20 50 61 75 6c 20 76 |spirit o|f Paul v|
|00000ea0| 61 6e 20 4d 75 6c 62 72 | 65 67 74 27 73 20 42 42 |an Mulbr|egt's BB|
|00000eb0| 58 54 2e 0d 23 20 0d 23 | 20 43 6f 6d 70 6f 73 65 |XT..# .#| Compose|
|00000ec0| 64 20 62 79 20 4d 61 72 | 6b 20 4e 61 67 61 74 61 |d by Mar|k Nagata|
|00000ed0| 20 28 6e 61 67 61 74 61 | 40 6b 75 72 69 6d 73 2e | (nagata|@kurims.|
|00000ee0| 6b 79 6f 74 6f 2d 75 2e | 61 63 2e 6a 70 29 20 0d |kyoto-u.|ac.jp) .|
|00000ef0| 23 20 66 6f 72 20 41 6c | 70 68 61 20 35 2e 37 36 |# for Al|pha 5.76|
|00000f00| 2c 20 34 2f 32 32 2f 39 | 34 2e 0d 23 20 0d 23 20 |, 4/22/9|4..# .# |
|00000f10| 4d 6f 64 69 66 69 65 64 | 20 62 79 20 54 69 6d 20 |Modified| by Tim |
|00000f20| 76 61 6e 20 64 65 72 20 | 4c 65 65 75 77 20 28 74 |van der |Leeuw (t|
|00000f30| 6e 6c 65 65 75 77 40 63 | 73 2e 76 75 2e 6e 6c 29 |nleeuw@c|s.vu.nl)|
|00000f40| 2c 20 39 2f 31 34 2f 39 | 34 2c 0d 23 20 49 6e 20 |, 9/14/9|4,.# In |
|00000f50| 74 68 65 20 73 70 69 72 | 69 74 20 6f 66 20 65 6d |the spir|it of em|
|00000f60| 61 63 73 2e 0d 23 20 49 | 20 68 61 76 65 20 6d 6f |acs..# I| have mo|
|00000f70| 64 69 66 69 65 64 20 74 | 68 69 73 20 72 6f 75 74 |dified t|his rout|
|00000f80| 69 6e 65 20 65 78 74 65 | 6e 73 69 76 65 6c 79 20 |ine exte|nsively |
|00000f90| 74 6f 20 61 64 64 20 74 | 68 65 20 61 62 69 6c 69 |to add t|he abili|
|00000fa0| 74 79 20 74 6f 20 63 6f | 6d 70 6c 65 74 65 0d 23 |ty to co|mplete.#|
|00000fb0| 20 61 20 77 6f 72 64 20 | 69 6e 20 6d 75 6c 74 69 | a word |in multi|
|00000fc0| 70 6c 65 20 77 61 79 73 | 20 69 66 20 63 61 6c 6c |ple ways| if call|
|00000fd0| 65 64 20 72 65 70 65 61 | 74 65 64 6c 79 2e 0d 23 |ed repea|tedly..#|
|00000fe0| 20 46 6f 72 20 74 68 69 | 73 20 70 75 72 70 6f 73 | For thi|s purpos|
|00000ff0| 65 2c 20 49 20 68 61 76 | 65 20 69 6e 74 72 6f 64 |e, I hav|e introd|
|00001000| 75 63 65 64 20 61 6c 6c | 20 74 68 65 20 67 6c 6f |uced all| the glo|
|00001010| 62 61 6c 20 76 61 72 69 | 61 62 6c 65 73 20 28 73 |bal vari|ables (s|
|00001020| 74 61 72 74 69 6e 67 20 | 77 69 74 68 0d 23 20 5f |tarting |with.# _|
|00001030| 5f 77 63 5f 5f 29 20 61 | 6e 64 20 61 64 64 65 64 |_wc__) a|nd added|
|00001040| 20 74 68 65 20 66 69 72 | 73 74 20 69 66 2d 73 74 | the fir|st if-st|
|00001050| 61 74 65 6d 65 6e 74 20 | 2d 2d 20 65 76 65 72 79 |atement |-- every|
|00001060| 74 68 69 6e 67 20 62 65 | 74 77 65 65 6e 0d 23 20 |thing be|tween.# |
|00001070| 27 73 65 74 20 70 6f 73 | 20 5b 67 65 74 50 6f 73 |'set pos| [getPos|
|00001080| 5d 27 20 61 6e 64 20 27 | 62 61 63 6b 77 61 72 64 |]' and '|backward|
|00001090| 57 6f 72 64 27 2e 20 49 | 6e 20 74 68 65 20 6f 72 |Word'. I|n the or|
|000010a0| 69 67 69 6e 61 6c 20 72 | 6f 75 74 69 6e 65 2c 20 |iginal r|outine, |
|000010b0| 49 27 76 65 20 63 68 61 | 6e 67 65 64 0d 23 20 73 |I've cha|nged.# s|
|000010c0| 6f 6d 65 20 65 78 69 73 | 74 69 6e 67 20 76 61 72 |ome exis|ting var|
|000010d0| 69 61 62 6c 65 73 20 74 | 6f 20 67 6c 6f 62 61 6c |iables t|o global|
|000010e0| 73 2c 20 70 72 65 66 69 | 78 69 6e 67 20 74 68 65 |s, prefi|xing the|
|000010f0| 69 72 20 6e 61 6d 65 20 | 77 69 74 68 20 27 5f 5f |ir name |with '__|
|00001100| 77 63 5f 5f 27 2e 0d 23 | 0d 23 20 54 68 69 73 20 |wc__'..#|.# This |
|00001110| 63 6f 64 65 20 69 73 20 | 70 72 6f 62 61 62 6c 79 |code is |probably|
|00001120| 20 6e 6f 74 20 74 68 65 | 20 6d 6f 73 74 20 65 66 | not the| most ef|
|00001130| 66 69 63 69 65 6e 74 20 | 74 63 6c 2d 63 6f 64 65 |ficient |tcl-code|
|00001140| 2c 20 6e 6f 72 20 74 68 | 65 20 6d 6f 73 74 20 65 |, nor th|e most e|
|00001150| 6c 65 67 61 6e 74 0d 23 | 20 74 63 6c 2d 63 6f 64 |legant.#| tcl-cod|
|00001160| 65 20 66 6f 72 20 74 68 | 69 73 20 70 72 6f 62 6c |e for th|is probl|
|00001170| 65 6d 2c 20 62 75 74 20 | 68 65 79 2c 20 69 74 20 |em, but |hey, it |
|00001180| 69 73 20 74 68 65 20 66 | 69 72 73 74 20 66 75 6e |is the f|irst fun|
|00001190| 63 74 69 6f 6e 20 49 27 | 76 65 20 65 76 65 72 0d |ction I'|ve ever.|
|000011a0| 23 20 77 72 69 74 74 65 | 6e 20 69 6e 20 74 63 6c |# writte|n in tcl|
|000011b0| 21 0d 23 20 49 66 20 61 | 6e 79 6f 6e 65 20 68 61 |!.# If a|nyone ha|
|000011c0| 73 20 73 6f 6d 65 20 73 | 75 67 67 65 73 74 69 6f |s some s|uggestio|
|000011d0| 6e 73 20 66 6f 72 20 69 | 6d 70 72 6f 76 65 6d 65 |ns for i|mproveme|
|000011e0| 6e 74 2c 20 6f 72 0d 23 | 20 6b 6e 6f 77 73 20 6f |nt, or.#| knows o|
|000011f0| 66 20 61 20 62 65 74 74 | 65 72 20 61 6c 67 6f 72 |f a bett|er algor|
|00001200| 69 74 68 6d 2c 20 49 20 | 77 6f 75 6c 64 20 6c 69 |ithm, I |would li|
|00001210| 6b 65 20 74 6f 20 6b 6e | 6f 77 20 69 74 2e 0d 23 |ke to kn|ow it..#|
|00001220| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001230| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001240| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001270| 0d 73 65 74 20 5f 5f 77 | 63 5f 5f 69 6e 73 50 6f |.set __w|c__insPo|
|00001280| 73 20 2d 31 0d 70 72 6f | 63 20 77 6f 72 64 43 6f |s -1.pro|c wordCo|
|00001290| 6d 70 6c 65 74 69 6f 6e | 20 7b 7d 20 7b 0d 09 67 |mpletion| {} {..g|
|000012a0| 6c 6f 62 61 6c 20 5f 5f | 77 63 5f 5f 6c 65 6e 20 |lobal __|wc__len |
|000012b0| 5f 5f 77 63 5f 5f 70 72 | 65 76 50 6f 73 20 5f 5f |__wc__pr|evPos __|
|000012c0| 77 63 5f 5f 69 6e 73 50 | 6f 73 20 5f 5f 77 63 5f |wc__insP|os __wc_|
|000012d0| 5f 70 72 65 76 46 6f 75 | 6e 64 20 5f 5f 77 63 5f |_prevFou|nd __wc_|
|000012e0| 5f 70 61 74 20 5f 5f 77 | 63 5f 5f 6e 65 78 74 53 |_pat __w|c__nextS|
|000012f0| 74 61 72 74 20 5f 5f 77 | 63 5f 5f 66 77 64 0d 09 |tart __w|c__fwd..|
|00001300| 0d 09 73 65 74 20 70 6f | 73 20 5b 67 65 74 50 6f |..set po|s [getPo|
|00001310| 73 5d 0d 09 69 66 20 24 | 70 6f 73 3d 3d 24 5f 5f |s]..if $|pos==$__|
|00001320| 77 63 5f 5f 69 6e 73 50 | 6f 73 20 7b 0d 09 09 23 |wc__insP|os {...#|
|00001330| 20 43 75 72 73 6f 72 20 | 63 68 61 6e 67 65 64 20 | Cursor |changed |
|00001340| 70 6c 61 63 65 3f 0d 09 | 09 73 65 74 20 73 6b 69 |place?..|.set ski|
|00001350| 70 53 74 72 20 24 5f 5f | 77 63 5f 5f 70 72 65 76 |pStr $__|wc__prev|
|00001360| 46 6f 75 6e 64 0d 09 09 | 77 68 69 6c 65 20 31 20 |Found...|while 1 |
|00001370| 7b 09 0d 09 09 09 69 66 | 20 24 5f 5f 77 63 5f 5f |{.....if| $__wc__|
|00001380| 66 77 64 20 7b 0d 09 09 | 09 09 73 65 74 20 66 6e |fwd {...|..set fn|
|00001390| 64 4d 73 67 20 22 66 6f | 75 6e 64 20 62 65 6c 6f |dMsg "fo|und belo|
|000013a0| 77 2e 22 0d 09 09 09 7d | 20 65 6c 73 65 20 7b 0d |w."....}| else {.|
|000013b0| 09 09 09 09 73 65 74 20 | 66 6e 64 4d 73 67 20 22 |....set |fndMsg "|
|000013c0| 66 6f 75 6e 64 20 61 62 | 6f 76 65 2e 22 0d 09 09 |found ab|ove."...|
|000013d0| 09 7d 0d 09 09 09 69 66 | 20 7b 21 5b 63 61 74 63 |.}....if| {![catc|
|000013e0| 68 20 7b 73 65 61 72 63 | 68 20 2d 66 20 24 5f 5f |h {searc|h -f $__|
|000013f0| 77 63 5f 5f 66 77 64 20 | 2d 72 20 31 20 2d 69 20 |wc__fwd |-r 1 -i |
|00001400| 30 20 2d 6d 20 31 20 2d | 2d 20 24 5f 5f 77 63 5f |0 -m 1 -|- $__wc_|
|00001410| 5f 70 61 74 20 24 5f 5f | 77 63 5f 5f 6e 65 78 74 |_pat $__|wc__next|
|00001420| 53 74 61 72 74 7d 20 64 | 61 74 61 5d 7d 20 7b 0d |Start} d|ata]} {.|
|00001430| 09 09 09 09 73 65 74 20 | 64 30 30 20 5b 6c 69 6e |....set |d00 [lin|
|00001440| 64 65 78 20 24 64 61 74 | 61 20 30 5d 0d 09 09 09 |dex $dat|a 0]....|
|00001450| 09 73 65 74 20 62 65 67 | 20 5b 65 78 70 72 20 24 |.set beg| [expr $|
|00001460| 64 30 30 2b 24 5f 5f 77 | 63 5f 5f 6c 65 6e 5d 0d |d00+$__w|c__len].|
|00001470| 09 09 09 09 73 65 74 20 | 65 6e 64 20 5b 6c 69 6e |....set |end [lin|
|00001480| 64 65 78 20 24 64 61 74 | 61 20 31 5d 0d 09 09 09 |dex $dat|a 1]....|
|00001490| 09 73 65 74 20 5f 5f 77 | 63 5f 5f 70 72 65 76 46 |.set __w|c__prevF|
|000014a0| 6f 75 6e 64 20 5b 67 65 | 74 54 65 78 74 20 24 64 |ound [ge|tText $d|
|000014b0| 30 30 20 24 65 6e 64 5d | 0d 09 09 09 09 69 66 20 |00 $end]|.....if |
|000014c0| 5b 73 74 72 69 6e 67 20 | 63 6f 6d 70 61 72 65 20 |[string |compare |
|000014d0| 24 73 6b 69 70 53 74 72 | 20 24 5f 5f 77 63 5f 5f |$skipStr| $__wc__|
|000014e0| 70 72 65 76 46 6f 75 6e | 64 5d 20 7b 0d 09 09 09 |prevFoun|d] {....|
|000014f0| 09 09 23 20 48 61 76 65 | 20 77 65 20 67 6f 74 20 |..# Have| we got |
|00001500| 74 68 65 20 73 61 6d 65 | 20 77 6f 72 64 20 74 77 |the same| word tw|
|00001510| 69 63 65 3f 0d 09 09 09 | 09 09 73 65 74 20 74 78 |ice?....|..set tx|
|00001520| 74 20 5b 67 65 74 54 65 | 78 74 20 24 62 65 67 20 |t [getTe|xt $beg |
|00001530| 24 65 6e 64 5d 0d 09 09 | 09 09 09 64 65 6c 65 74 |$end]...|...delet|
|00001540| 65 54 65 78 74 20 24 5f | 5f 77 63 5f 5f 70 72 65 |eText $_|_wc__pre|
|00001550| 76 50 6f 73 20 24 5f 5f | 77 63 5f 5f 69 6e 73 50 |vPos $__|wc__insP|
|00001560| 6f 73 0d 09 09 09 09 09 | 67 6f 74 6f 20 24 5f 5f |os......|goto $__|
|00001570| 77 63 5f 5f 70 72 65 76 | 50 6f 73 0d 09 09 09 09 |wc__prev|Pos.....|
|00001580| 09 69 6e 73 65 72 74 54 | 65 78 74 20 24 74 78 74 |.insertT|ext $txt|
|00001590| 0d 09 09 09 09 09 6d 65 | 73 73 61 67 65 20 24 66 |......me|ssage $f|
|000015a0| 6e 64 4d 73 67 0d 09 09 | 09 09 09 23 20 53 65 74 |ndMsg...|...# Set|
|000015b0| 20 61 20 6e 75 6d 62 65 | 72 20 6f 66 20 67 6c 6f | a numbe|r of glo|
|000015c0| 62 61 6c 73 20 66 6f 72 | 20 70 6f 73 73 69 62 6c |bals for| possibl|
|000015d0| 65 20 6e 65 78 74 20 67 | 6f 2d 61 72 6f 75 6e 64 |e next g|o-around|
|000015e0| 0d 09 09 09 09 09 73 65 | 74 20 5f 5f 77 63 5f 5f |......se|t __wc__|
|000015f0| 69 6e 73 50 6f 73 20 5b | 67 65 74 50 6f 73 5d 0d |insPos [|getPos].|
|00001600| 09 09 09 09 09 69 66 20 | 24 5f 5f 77 63 5f 5f 66 |.....if |$__wc__f|
|00001610| 77 64 20 7b 0d 09 09 09 | 09 09 09 23 20 53 65 61 |wd {....|...# Sea|
|00001620| 72 63 68 20 46 6f 72 77 | 61 72 64 73 0d 09 09 09 |rch Forw|ards....|
|00001630| 09 09 09 73 65 74 20 5f | 5f 77 63 5f 5f 6e 65 78 |...set _|_wc__nex|
|00001640| 74 53 74 61 72 74 20 24 | 65 6e 64 0d 09 09 09 09 |tStart $|end.....|
|00001650| 09 09 23 20 45 6e 64 20 | 6f 66 20 66 6f 75 6e 64 |..# End |of found|
|00001660| 20 77 6f 72 64 0d 09 09 | 09 09 09 7d 20 65 6c 73 | word...|...} els|
|00001670| 65 20 7b 0d 09 09 09 09 | 09 09 23 20 53 65 61 72 |e {.....|..# Sear|
|00001680| 63 68 20 42 61 63 6b 77 | 61 72 64 73 0d 09 09 09 |ch Backw|ards....|
|00001690| 09 09 09 73 65 74 20 5f | 5f 77 63 5f 5f 6e 65 78 |...set _|_wc__nex|
|000016a0| 74 53 74 61 72 74 20 5b | 65 78 70 72 20 24 64 30 |tStart [|expr $d0|
|000016b0| 30 20 2d 20 24 5f 5f 77 | 63 5f 5f 6c 65 6e 5d 0d |0 - $__w|c__len].|
|000016c0| 09 09 09 09 09 09 23 20 | 42 65 66 6f 72 65 20 73 |......# |Before s|
|000016d0| 74 61 72 74 20 6f 66 20 | 66 6f 75 6e 64 20 77 6f |tart of |found wo|
|000016e0| 72 64 0d 09 09 09 09 09 | 09 69 66 20 24 5f 5f 77 |rd......|.if $__w|
|000016f0| 63 5f 5f 6e 65 78 74 53 | 74 61 72 74 3c 3d 30 20 |c__nextS|tart<=0 |
|00001700| 7b 0d 09 09 09 09 09 09 | 09 73 65 74 20 5f 5f 77 |{.......|.set __w|
|00001710| 63 5f 5f 66 77 64 20 31 | 0d 09 09 09 09 09 09 09 |c__fwd 1|........|
|00001720| 73 65 74 20 5f 5f 77 63 | 5f 5f 6e 65 78 74 53 74 |set __wc|__nextSt|
|00001730| 61 72 74 20 24 5f 5f 77 | 63 5f 5f 69 6e 73 50 6f |art $__w|c__insPo|
|00001740| 73 0d 09 09 09 09 09 09 | 7d 0d 09 09 09 09 09 7d |s.......|}......}|
|00001750| 0d 09 09 09 09 09 72 65 | 74 75 72 6e 0d 09 09 09 |......re|turn....|
|00001760| 09 7d 20 65 6c 73 65 20 | 7b 0d 09 09 09 09 09 23 |.} else |{......#|
|00001770| 20 4d 6f 76 65 20 73 74 | 61 72 74 20 6f 66 20 73 | Move st|art of s|
|00001780| 65 61 72 63 68 20 61 66 | 74 65 72 20 66 69 6e 64 |earch af|ter find|
|00001790| 69 6e 67 20 73 74 72 69 | 6e 67 20 61 67 61 69 6e |ing stri|ng again|
|000017a0| 0d 09 09 09 09 09 69 66 | 20 24 5f 5f 77 63 5f 5f |......if| $__wc__|
|000017b0| 66 77 64 20 7b 0d 09 09 | 09 09 09 09 23 20 53 65 |fwd {...|....# Se|
|000017c0| 61 72 63 68 69 6e 67 20 | 46 6f 72 77 61 72 64 73 |arching |Forwards|
|000017d0| 0d 09 09 09 09 09 09 73 | 65 74 20 5f 5f 77 63 5f |.......s|et __wc_|
|000017e0| 5f 6e 65 78 74 53 74 61 | 72 74 20 24 65 6e 64 0d |_nextSta|rt $end.|
|000017f0| 09 09 09 09 09 09 23 20 | 45 6e 64 20 6f 66 20 66 |......# |End of f|
|00001800| 6f 75 6e 64 20 77 6f 72 | 64 0d 09 09 09 09 09 7d |ound wor|d......}|
|00001810| 20 65 6c 73 65 20 7b 0d | 09 09 09 09 09 09 23 20 | else {.|......# |
|00001820| 53 74 69 6c 6c 20 53 65 | 61 72 63 68 69 6e 67 20 |Still Se|arching |
|00001830| 42 61 63 6b 77 61 72 64 | 73 0d 09 09 09 09 09 09 |Backward|s.......|
|00001840| 73 65 74 20 5f 5f 77 63 | 5f 5f 6e 65 78 74 53 74 |set __wc|__nextSt|
|00001850| 61 72 74 20 5b 65 78 70 | 72 20 24 64 30 30 20 2d |art [exp|r $d00 -|
|00001860| 20 24 5f 5f 77 63 5f 5f | 6c 65 6e 5d 0d 09 09 09 | $__wc__|len]....|
|00001870| 09 09 09 23 20 42 65 66 | 6f 72 65 20 73 74 61 72 |...# Bef|ore star|
|00001880| 74 20 6f 66 20 66 6f 75 | 6e 64 20 77 6f 72 64 0d |t of fou|nd word.|
|00001890| 09 09 09 09 09 09 69 66 | 20 24 5f 5f 77 63 5f 5f |......if| $__wc__|
|000018a0| 6e 65 78 74 53 74 61 72 | 74 3c 3d 30 20 7b 0d 09 |nextStar|t<=0 {..|
|000018b0| 09 09 09 09 09 09 73 65 | 74 20 5f 5f 77 63 5f 5f |......se|t __wc__|
|000018c0| 66 77 64 20 31 0d 09 09 | 09 09 09 09 09 73 65 74 |fwd 1...|.....set|
|000018d0| 20 5f 5f 77 63 5f 5f 6e | 65 78 74 53 74 61 72 74 | __wc__n|extStart|
|000018e0| 20 24 5f 5f 77 63 5f 5f | 69 6e 73 50 6f 73 0d 09 | $__wc__|insPos..|
|000018f0| 09 09 09 09 09 7d 0d 09 | 09 09 09 09 7d 0d 09 09 |.....}..|....}...|
|00001900| 09 09 7d 0d 09 09 09 09 | 23 20 45 6e 64 20 69 66 |..}.....|# End if|
|00001910| 20 73 74 72 69 6e 67 20 | 63 6f 6d 70 61 72 65 20 | string |compare |
|00001920| 0d 09 09 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 09 |....} el|se {....|
|00001930| 09 23 20 53 65 61 72 63 | 68 20 73 74 72 69 6e 67 |.# Searc|h string|
|00001940| 20 6e 6f 74 20 66 6f 75 | 6e 64 0d 09 09 09 09 69 | not fou|nd.....i|
|00001950| 66 20 24 5f 5f 77 63 5f | 5f 66 77 64 20 7b 0d 09 |f $__wc_|_fwd {..|
|00001960| 09 09 09 09 23 20 57 65 | 20 77 65 72 65 20 61 6c |....# We| were al|
|00001970| 72 65 61 64 79 20 6c 6f | 6f 6b 69 6e 67 20 66 6f |ready lo|oking fo|
|00001980| 72 77 61 72 64 2c 20 73 | 6f 20 74 68 65 20 77 6f |rward, s|o the wo|
|00001990| 72 64 20 69 73 20 6e 6f | 74 20 69 6e 20 74 68 65 |rd is no|t in the|
|000019a0| 20 66 69 6c 65 0d 09 09 | 09 09 09 6d 65 73 73 61 | file...|...messa|
|000019b0| 67 65 20 22 4e 6f 74 20 | 66 6f 75 6e 64 2e 22 0d |ge "Not |found.".|
|000019c0| 09 09 09 09 09 73 65 74 | 20 5f 5f 77 63 5f 5f 69 |.....set| __wc__i|
|000019d0| 6e 73 50 6f 73 20 2d 31 | 0d 09 09 09 09 09 67 6f |nsPos -1|......go|
|000019e0| 74 6f 20 24 70 6f 73 0d | 09 09 09 09 09 62 61 63 |to $pos.|.....bac|
|000019f0| 6b 77 61 72 64 57 6f 72 | 64 53 65 6c 65 63 74 0d |kwardWor|dSelect.|
|00001a00| 09 09 09 09 09 72 65 74 | 75 72 6e 0d 09 09 09 09 |.....ret|urn.....|
|00001a10| 7d 20 65 6c 73 65 20 7b | 0d 09 09 09 09 09 23 20 |} else {|......# |
|00001a20| 73 74 61 72 74 20 6c 6f | 6f 6b 69 6e 67 20 66 6f |start lo|oking fo|
|00001a30| 72 77 61 72 64 0d 09 09 | 09 09 09 73 65 74 20 5f |rward...|...set _|
|00001a40| 5f 77 63 5f 5f 66 77 64 | 20 31 0d 09 09 09 09 09 |_wc__fwd| 1......|
|00001a50| 73 65 74 20 5f 5f 77 63 | 5f 5f 6e 65 78 74 53 74 |set __wc|__nextSt|
|00001a60| 61 72 74 20 24 5f 5f 77 | 63 5f 5f 69 6e 73 50 6f |art $__w|c__insPo|
|00001a70| 73 0d 09 09 09 09 7d 0d | 09 09 09 7d 0d 09 09 09 |s.....}.|...}....|
|00001a80| 0d 09 09 7d 0d 09 7d 0d | 09 62 61 63 6b 77 61 72 |...}..}.|.backwar|
|00001a90| 64 57 6f 72 64 0d 09 23 | 20 53 74 61 72 74 20 6e |dWord..#| Start n|
|00001aa0| 65 77 20 73 65 61 72 63 | 68 20 66 6f 72 20 57 6f |ew searc|h for Wo|
|00001ab0| 72 64 43 6f 6d 70 6c 65 | 74 69 6f 6e 0d 09 73 65 |rdComple|tion..se|
|00001ac0| 74 20 73 74 61 72 74 20 | 5b 67 65 74 50 6f 73 5d |t start |[getPos]|
|00001ad0| 0d 09 73 65 74 20 6f 6e | 65 20 5b 67 65 74 54 65 |..set on|e [getTe|
|00001ae0| 78 74 20 24 73 74 61 72 | 74 20 24 70 6f 73 5d 0d |xt $star|t $pos].|
|00001af0| 09 73 65 74 20 5f 5f 77 | 63 5f 5f 6c 65 6e 20 5b |.set __w|c__len [|
|00001b00| 65 78 70 72 20 24 70 6f | 73 2d 24 73 74 61 72 74 |expr $po|s-$start|
|00001b10| 5d 0d 09 73 65 74 20 5f | 5f 77 63 5f 5f 70 61 74 |]..set _|_wc__pat|
|00001b20| 20 5b 61 70 70 65 6e 64 | 20 6f 6e 65 20 7b 5b 61 | [append| one {[a|
|00001b30| 2d 7a 41 2d 5a 30 2d 39 | 5f 5d 2b 7d 5d 0d 09 73 |-zA-Z0-9|_]+}]..s|
|00001b40| 65 74 20 73 74 61 72 74 | 20 5b 65 78 70 72 20 24 |et start| [expr $|
|00001b50| 73 74 61 72 74 2d 31 5d | 0d 09 69 66 20 7b 21 5b |start-1]|..if {![|
|00001b60| 63 61 74 63 68 20 7b 73 | 65 61 72 63 68 20 2d 66 |catch {s|earch -f|
|00001b70| 20 30 20 2d 72 20 31 20 | 2d 69 20 30 20 2d 6d 20 | 0 -r 1 |-i 0 -m |
|00001b80| 31 20 2d 2d 20 24 5f 5f | 77 63 5f 5f 70 61 74 20 |1 -- $__|wc__pat |
|00001b90| 24 73 74 61 72 74 7d 20 | 64 61 74 61 5d 7d 20 7b |$start} |data]} {|
|00001ba0| 0d 09 09 73 65 74 20 64 | 30 30 20 5b 6c 69 6e 64 |...set d|00 [lind|
|00001bb0| 65 78 20 24 64 61 74 61 | 20 30 5d 0d 09 09 73 65 |ex $data| 0]...se|
|00001bc0| 74 20 62 65 67 20 5b 65 | 78 70 72 20 24 64 30 30 |t beg [e|xpr $d00|
|00001bd0| 2b 24 5f 5f 77 63 5f 5f | 6c 65 6e 5d 0d 09 09 73 |+$__wc__|len]...s|
|00001be0| 65 74 20 65 6e 64 20 5b | 6c 69 6e 64 65 78 20 24 |et end [|lindex $|
|00001bf0| 64 61 74 61 20 31 5d 0d | 09 09 73 65 74 20 5f 5f |data 1].|..set __|
|00001c00| 77 63 5f 5f 70 72 65 76 | 46 6f 75 6e 64 20 5b 67 |wc__prev|Found [g|
|00001c10| 65 74 54 65 78 74 20 24 | 64 30 30 20 24 65 6e 64 |etText $|d00 $end|
|00001c20| 20 5d 0d 09 09 73 65 74 | 20 74 78 74 20 5b 67 65 | ]...set| txt [ge|
|00001c30| 74 54 65 78 74 20 24 62 | 65 67 20 24 65 6e 64 5d |tText $b|eg $end]|
|00001c40| 0d 09 09 67 6f 74 6f 20 | 24 70 6f 73 0d 09 09 69 |...goto |$pos...i|
|00001c50| 6e 73 65 72 74 54 65 78 | 74 20 24 74 78 74 0d 09 |nsertTex|t $txt..|
|00001c60| 09 6d 65 73 73 61 67 65 | 20 22 66 6f 75 6e 64 20 |.message| "found |
|00001c70| 61 62 6f 76 65 2e 22 0d | 09 09 23 20 53 65 74 20 |above.".|..# Set |
|00001c80| 61 20 6e 75 6d 62 65 72 | 20 6f 66 20 67 6c 6f 62 |a number| of glob|
|00001c90| 61 6c 73 20 66 6f 72 20 | 70 6f 73 73 69 62 6c 65 |als for |possible|
|00001ca0| 20 6e 65 78 74 20 67 6f | 2d 61 72 6f 75 6e 64 0d | next go|-around.|
|00001cb0| 09 09 73 65 74 20 5f 5f | 77 63 5f 5f 69 6e 73 50 |..set __|wc__insP|
|00001cc0| 6f 73 20 5b 67 65 74 50 | 6f 73 5d 0d 09 09 73 65 |os [getP|os]...se|
|00001cd0| 74 20 5f 5f 77 63 5f 5f | 70 72 65 76 50 6f 73 20 |t __wc__|prevPos |
|00001ce0| 24 70 6f 73 0d 09 09 73 | 65 74 20 5f 5f 77 63 5f |$pos...s|et __wc_|
|00001cf0| 5f 6e 65 78 74 53 74 61 | 72 74 20 5b 65 78 70 72 |_nextSta|rt [expr|
|00001d00| 20 24 64 30 30 2d 24 5f | 5f 77 63 5f 5f 6c 65 6e | $d00-$_|_wc__len|
|00001d10| 5d 0d 09 09 73 65 74 20 | 5f 5f 77 63 5f 5f 66 77 |]...set |__wc__fw|
|00001d20| 64 20 30 0d 09 09 72 65 | 74 75 72 6e 0d 09 7d 0d |d 0...re|turn..}.|
|00001d30| 09 69 66 20 7b 21 5b 63 | 61 74 63 68 20 7b 73 65 |.if {![c|atch {se|
|00001d40| 61 72 63 68 20 2d 66 20 | 31 20 2d 72 20 31 20 2d |arch -f |1 -r 1 -|
|00001d50| 69 20 30 20 2d 6d 20 31 | 20 2d 2d 20 24 5f 5f 77 |i 0 -m 1| -- $__w|
|00001d60| 63 5f 5f 70 61 74 20 24 | 70 6f 73 7d 20 64 61 74 |c__pat $|pos} dat|
|00001d70| 61 5d 7d 20 7b 0d 09 09 | 73 65 74 20 5f 5f 77 63 |a]} {...|set __wc|
|00001d80| 5f 5f 70 72 65 76 46 6f | 75 6e 64 20 5b 67 65 74 |__prevFo|und [get|
|00001d90| 54 65 78 74 20 5b 6c 69 | 6e 64 65 78 20 24 64 61 |Text [li|ndex $da|
|00001da0| 74 61 20 30 5d 20 5b 6c | 69 6e 64 65 78 20 24 64 |ta 0] [l|index $d|
|00001db0| 61 74 61 20 31 5d 20 5d | 0d 09 09 73 65 74 20 62 |ata 1] ]|...set b|
|00001dc0| 65 67 20 5b 65 78 70 72 | 20 5b 6c 69 6e 64 65 78 |eg [expr| [lindex|
|00001dd0| 20 24 64 61 74 61 20 30 | 5d 2b 24 5f 5f 77 63 5f | $data 0|]+$__wc_|
|00001de0| 5f 6c 65 6e 5d 0d 09 09 | 73 65 74 20 65 6e 64 20 |_len]...|set end |
|00001df0| 5b 6c 69 6e 64 65 78 20 | 24 64 61 74 61 20 31 5d |[lindex |$data 1]|
|00001e00| 0d 09 09 73 65 74 20 74 | 78 74 20 5b 67 65 74 54 |...set t|xt [getT|
|00001e10| 65 78 74 20 24 62 65 67 | 20 24 65 6e 64 5d 0d 09 |ext $beg| $end]..|
|00001e20| 09 67 6f 74 6f 20 24 70 | 6f 73 0d 09 09 69 6e 73 |.goto $p|os...ins|
|00001e30| 65 72 74 54 65 78 74 20 | 24 74 78 74 0d 09 09 6d |ertText |$txt...m|
|00001e40| 65 73 73 61 67 65 20 22 | 66 6f 75 6e 64 20 62 65 |essage "|found be|
|00001e50| 6c 6f 77 2e 22 0d 09 09 | 23 20 53 65 74 20 61 20 |low."...|# Set a |
|00001e60| 6e 75 6d 62 65 72 20 6f | 66 20 67 6c 6f 62 61 6c |number o|f global|
|00001e70| 73 20 66 6f 72 20 70 6f | 73 73 69 62 6c 65 20 6e |s for po|ssible n|
|00001e80| 65 78 74 20 67 6f 2d 61 | 72 6f 75 6e 64 0d 09 09 |ext go-a|round...|
|00001e90| 73 65 74 20 5f 5f 77 63 | 5f 5f 69 6e 73 50 6f 73 |set __wc|__insPos|
|00001ea0| 20 5b 67 65 74 50 6f 73 | 5d 0d 09 09 73 65 74 20 | [getPos|]...set |
|00001eb0| 5f 5f 77 63 5f 5f 70 72 | 65 76 50 6f 73 20 24 70 |__wc__pr|evPos $p|
|00001ec0| 6f 73 0d 09 09 73 65 74 | 20 5f 5f 77 63 5f 5f 6e |os...set| __wc__n|
|00001ed0| 65 78 74 53 74 61 72 74 | 20 24 65 6e 64 0d 09 09 |extStart| $end...|
|00001ee0| 73 65 74 20 5f 5f 77 63 | 5f 5f 66 77 64 20 31 0d |set __wc|__fwd 1.|
|00001ef0| 09 09 72 65 74 75 72 6e | 0d 09 7d 0d 09 67 6f 74 |..return|..}..got|
|00001f00| 6f 20 24 70 6f 73 0d 09 | 62 61 63 6b 77 61 72 64 |o $pos..|backward|
|00001f10| 57 6f 72 64 53 65 6c 65 | 63 74 0d 7d 0d 0d 0d 0d |WordSele|ct.}....|
|00001f20| 23 20 54 68 69 73 20 69 | 73 20 61 6c 6c 20 64 75 |# This i|s all du|
|00001f30| 65 20 74 6f 20 74 68 65 | 20 69 64 65 61 20 6f 66 |e to the| idea of|
|00001f40| 20 50 61 75 6c 20 76 61 | 6e 20 4d 75 6c 62 72 65 | Paul va|n Mulbre|
|00001f50| 67 74 2e 20 49 6e 20 68 | 69 73 20 64 6f 63 75 6d |gt. In h|is docum|
|00001f60| 65 6e 74 61 74 69 6f 6e | 20 0d 23 20 6f 66 20 68 |entation| .# of h|
|00001f70| 69 73 20 42 42 45 64 69 | 74 20 42 42 45 78 74 65 |is BBEdi|t BBExte|
|00001f80| 6e 73 69 6f 6e 20 28 69 | 6e 66 6f 2d 6d 61 63 2f |nsion (i|nfo-mac/|
|00001f90| 74 65 78 74 2f 62 62 65 | 64 69 74 2d 66 6c 2d 70 |text/bbe|dit-fl-p|
|00001fa0| 61 63 6b 61 67 65 2d 31 | 31 2e 68 71 78 29 2c 20 |ackage-1|1.hqx), |
|00001fb0| 0d 23 20 68 65 20 65 78 | 70 6c 61 69 6e 73 3a 0d |.# he ex|plains:.|
|00001fc0| 23 20 0d 23 20 2d 2d 20 | 20 46 72 6f 6d 20 74 68 |# .# -- | From th|
|00001fd0| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|00001fe0| 77 72 69 74 74 65 6e 20 | 62 79 20 20 20 20 20 20 |written |by |
|00001ff0| 20 20 2d 2d 0d 23 20 2d | 2d 20 20 50 61 75 6c 20 | --.# -|- Paul |
|00002000| 76 61 6e 20 4d 75 6c 62 | 72 65 67 74 20 28 70 61 |van Mulb|regt (pa|
|00002010| 75 6c 76 6d 40 64 72 61 | 67 6f 6e 73 79 73 2e 63 |ulvm@dra|gonsys.c|
|00002020| 6f 6d 29 20 2d 2d 0d 23 | 20 0d 23 20 57 6f 72 64 |om) --.#| .# Word|
|00002030| 20 43 6f 6d 70 6c 65 74 | 69 6f 6e 0d 23 20 0d 23 | Complet|ion.# .#|
|00002040| 20 54 68 69 73 20 65 78 | 74 65 6e 73 69 6f 6e 20 | This ex|tension |
|00002050| 73 61 76 65 73 20 74 79 | 70 69 6e 67 2c 20 61 73 |saves ty|ping, as|
|00002060| 20 77 65 6c 6c 20 61 73 | 20 6d 61 6b 69 6e 67 20 | well as| making |
|00002070| 73 75 72 65 20 76 61 72 | 69 61 62 6c 65 20 6e 61 |sure var|iable na|
|00002080| 6d 65 73 20 61 72 65 20 | 0d 23 20 63 6f 72 72 65 |mes are |.# corre|
|00002090| 63 74 2e 20 20 57 68 69 | 6c 65 20 74 79 70 69 6e |ct. Whi|le typin|
|000020a0| 67 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |g the fo|llowing |
|000020b0| 43 20 63 6f 64 65 2c 20 | 74 68 65 72 65 20 69 73 |C code, |there is|
|000020c0| 20 6e 6f 20 6e 65 65 64 | 20 74 6f 20 74 79 70 65 | no need| to type|
|000020d0| 20 61 6c 6c 20 0d 23 20 | 6f 66 20 74 68 65 20 73 | all .# |of the s|
|000020e0| 65 63 6f 6e 64 20 6f 63 | 63 75 72 72 65 6e 63 65 |econd oc|currence|
|000020f0| 20 6f 66 20 76 65 72 79 | 53 70 65 63 69 61 6c 49 | of very|SpecialI|
|00002100| 6e 74 2e 20 20 4f 6e 65 | 20 63 6f 75 6c 64 20 63 |nt. One| could c|
|00002110| 6f 70 79 20 61 6e 64 20 | 70 61 73 74 65 2c 20 62 |opy and |paste, b|
|00002120| 75 74 20 0d 23 20 61 6e | 6f 74 68 65 72 20 77 61 |ut .# an|other wa|
|00002130| 79 20 69 73 20 74 6f 20 | 74 79 70 65 20 61 20 66 |y is to |type a f|
|00002140| 65 77 20 6c 65 74 74 65 | 72 73 2c 20 61 6e 64 20 |ew lette|rs, and |
|00002150| 73 65 6c 65 63 74 20 74 | 68 65 20 57 6f 72 64 20 |select t|he Word |
|00002160| 43 6f 6d 70 6c 65 74 69 | 6f 6e 20 0d 23 20 45 78 |Completi|on .# Ex|
|00002170| 74 65 6e 73 69 6f 6e 2e | 0d 23 20 0d 23 20 09 69 |tension.|.# .# .i|
|00002180| 6e 74 20 76 65 72 79 53 | 70 65 63 69 61 6c 49 6e |nt veryS|pecialIn|
|00002190| 74 20 3d 20 31 30 3b 0d | 23 20 09 77 68 69 6c 65 |t = 10;.|# .while|
|000021a0| 28 76 65 72 79 53 70 20 | 20 20 20 20 20 20 20 20 |(verySp | |
|000021b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 20 0d 23 20 0d 23 | | .# .#|
|000021e0| 20 0d 23 20 62 65 63 6f | 6d 65 73 0d 23 20 0d 23 | .# beco|mes.# .#|
|000021f0| 20 09 69 6e 74 20 76 65 | 72 79 53 70 65 63 69 61 | .int ve|rySpecia|
|00002200| 6c 49 6e 74 20 3d 20 31 | 30 3b 0d 23 20 09 77 68 |lInt = 1|0;.# .wh|
|00002210| 69 6c 65 28 76 65 72 79 | 53 70 65 63 69 61 6c 49 |ile(very|SpecialI|
|00002220| 6e 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nt | |
|00002230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0d | | .|
|00002250| 23 20 0d 23 20 20 20 20 | 20 20 20 20 20 20 20 20 |# .# | |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002280| 20 20 20 20 20 20 20 20 | 20 0d 23 20 0d 23 20 57 | | .# .# W|
|00002290| 6f 72 64 20 43 6f 6d 70 | 6c 65 74 69 6f 6e 20 77 |ord Comp|letion w|
|000022a0| 69 6c 6c 20 6c 6f 6f 6b | 20 62 61 63 6b 20 69 6e |ill look| back in|
|000022b0| 20 74 68 65 20 63 6f 64 | 65 20 74 6f 20 66 69 6e | the cod|e to fin|
|000022c0| 64 20 74 68 65 20 66 69 | 72 73 74 20 6d 61 74 63 |d the fi|rst matc|
|000022d0| 68 20 61 6e 64 20 74 68 | 65 6e 20 0d 23 20 65 78 |h and th|en .# ex|
|000022e0| 74 65 6e 64 20 74 68 65 | 20 63 75 72 72 65 6e 74 |tend the| current|
|000022f0| 20 6f 63 63 75 72 72 65 | 6e 63 65 20 74 6f 20 6d | occurre|nce to m|
|00002300| 61 74 63 68 20 74 68 65 | 20 70 72 65 76 69 6f 75 |atch the| previou|
|00002310| 73 20 6f 63 63 75 72 72 | 65 6e 63 65 2e 20 20 49 |s occurr|ence. I|
|00002320| 66 20 61 20 6d 61 74 63 | 68 20 0d 23 20 69 73 20 |f a matc|h .# is |
|00002330| 6e 6f 74 20 66 6f 75 6e | 64 20 6c 6f 6f 6b 69 6e |not foun|d lookin|
|00002340| 67 20 62 61 63 6b 77 61 | 72 64 73 2c 20 74 68 65 |g backwa|rds, the|
|00002350| 6e 20 69 74 20 6c 6f 6f | 6b 73 20 66 6f 72 77 61 |n it loo|ks forwa|
|00002360| 72 64 73 2e 20 20 49 66 | 20 6e 6f 74 20 66 6f 75 |rds. If| not fou|
|00002370| 6e 64 20 0d 23 20 66 6f | 72 77 61 72 64 73 2c 20 |nd .# fo|rwards, |
|00002380| 74 68 65 20 77 6f 72 64 | 20 69 73 20 73 65 6c 65 |the word| is sele|
|00002390| 63 74 65 64 2e 20 20 54 | 68 69 73 20 69 73 20 61 |cted. T|his is a|
|000023a0| 20 71 75 69 63 6b 20 77 | 61 79 20 74 6f 20 73 61 | quick w|ay to sa|
|000023b0| 76 65 20 6f 6e 20 74 79 | 70 69 6e 67 2c 20 0d 23 |ve on ty|ping, .#|
|000023c0| 20 67 6f 6f 64 20 66 6f | 72 20 68 65 6c 70 69 6e | good fo|r helpin|
|000023d0| 67 20 70 72 65 76 65 6e | 74 20 52 53 49 2c 20 62 |g preven|t RSI, b|
|000023e0| 75 74 20 70 65 72 68 61 | 70 73 20 6d 6f 72 65 20 |ut perha|ps more |
|000023f0| 69 6d 70 6f 72 74 61 6e | 74 6c 79 2c 20 74 6f 20 |importan|tly, to |
|00002400| 6d 61 6b 65 20 73 75 72 | 65 20 0d 23 20 74 68 61 |make sur|e .# tha|
|00002410| 74 20 76 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 73 |t variab|le names|
|00002420| 20 61 72 65 20 73 70 65 | 6c 74 20 63 6f 72 72 65 | are spe|lt corre|
|00002430| 63 74 6c 79 2e 0d 23 20 | 0d 23 20 54 68 65 72 65 |ctly..# |.# There|
|00002440| 20 69 73 20 6e 6f 20 75 | 73 65 72 20 69 6e 74 65 | is no u|ser inte|
|00002450| 72 66 61 63 65 20 66 6f | 72 20 57 6f 72 64 20 43 |rface fo|r Word C|
|00002460| 6f 6d 70 6c 65 74 69 6f | 6e 2e 0d 23 20 0d 23 20 |ompletio|n..# .# |
|00002470| 54 68 65 20 75 73 65 66 | 75 6c 6e 65 73 73 20 6f |The usef|ulness o|
|00002480| 66 20 74 68 69 73 20 65 | 78 74 65 6e 73 69 6f 6e |f this e|xtension|
|00002490| 20 69 73 20 67 72 65 61 | 74 6c 79 20 65 6e 68 61 | is grea|tly enha|
|000024a0| 6e 63 65 64 20 69 66 20 | 74 68 65 20 65 78 74 65 |nced if |the exte|
|000024b0| 6e 73 69 6f 6e 20 69 73 | 20 0d 23 20 62 6f 75 6e |nsion is| .# boun|
|000024c0| 64 20 74 6f 20 61 20 6b | 65 79 21 0d 23 20 0d 23 |d to a k|ey!.# .#|
|000024d0| 20 2d 2d 20 65 6e 64 20 | 6f 66 20 50 61 75 6c 20 | -- end |of Paul |
|000024e0| 76 61 6e 20 4d 75 6c 62 | 72 65 67 74 27 73 20 65 |van Mulb|regt's e|
|000024f0| 78 70 6c 61 6e 61 74 69 | 6f 6e 2e 20 2d 2d 0d 0d |xplanati|on. --..|
|00002500| 0d 0d 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...-----|--------|
|00002510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 0d |--------|------..|
|00002520| 3e 46 72 6f 6d 20 72 6f | 6c 6c 69 6e 40 6e 65 77 |>From ro|llin@new|
|00002530| 74 6f 6e 2e 61 70 70 6c | 65 2e 63 6f 6d 20 28 4b |ton.appl|e.com (K|
|00002540| 65 69 74 68 20 52 6f 6c | 6c 69 6e 29 0d 53 75 62 |eith Rol|lin).Sub|
|00002550| 6a 65 63 74 3a 20 41 70 | 70 65 6e 64 69 6e 67 20 |ject: Ap|pending |
|00002560| 64 61 74 61 20 74 6f 20 | 57 69 6e 64 6f 77 52 65 |data to |WindowRe|
|00002570| 63 6f 72 64 0d 44 61 74 | 65 3a 20 54 75 65 2c 20 |cord.Dat|e: Tue, |
|00002580| 33 30 20 41 75 67 20 31 | 39 39 34 20 30 39 3a 34 |30 Aug 1|994 09:4|
|00002590| 32 3a 30 38 20 2d 30 38 | 30 30 0d 4f 72 67 61 6e |2:08 -08|00.Organ|
|000025a0| 69 7a 61 74 69 6f 6e 3a | 20 41 70 70 6c 65 20 5d |ization:| Apple ]|
|000025b0| 5b 20 2d 3e 20 4d 61 63 | 20 2d 3e 20 54 61 6c 69 |[ -> Mac| -> Tali|
|000025c0| 67 65 6e 74 20 2d 3e 20 | 4e 65 77 74 6f 6e 20 2d |gent -> |Newton -|
|000025d0| 3e 20 57 69 6e 64 6f 77 | 73 3f 0d 0d 49 6e 20 61 |> Window|s?..In a|
|000025e0| 72 74 69 63 6c 65 20 3c | 33 33 64 6f 34 64 24 61 |rticle <|33do4d$a|
|000025f0| 62 68 40 6e 65 77 73 79 | 2e 69 66 6d 2e 6c 69 75 |bh@newsy|.ifm.liu|
|00002600| 2e 73 65 3e 2c 20 6a 6f | 6e 61 73 77 40 6c 79 73 |.se>, jo|nasw@lys|
|00002610| 61 74 6f 72 2e 6c 69 75 | 2e 73 65 20 28 4a 6f 6e |ator.liu|.se (Jon|
|00002620| 61 73 0d 57 61 6c 6c 64 | 65 6e 29 20 77 72 6f 74 |as.Walld|en) wrot|
|00002630| 65 3a 0d 3e 0d 3e 41 20 | 67 72 65 61 74 20 77 61 |e:.>.>A |great wa|
|00002640| 79 20 74 6f 20 65 78 74 | 65 6e 64 20 57 69 6e 64 |y to ext|end Wind|
|00002650| 6f 77 52 65 63 6f 72 64 | 73 20 69 73 20 74 6f 20 |owRecord|s is to |
|00002660| 64 65 63 6c 61 72 65 20 | 79 6f 75 72 20 6f 77 6e |declare |your own|
|00002670| 20 64 61 74 61 20 74 79 | 70 65 20 77 69 74 68 0d | data ty|pe with.|
|00002680| 3e 61 20 57 69 6e 64 6f | 77 52 65 63 6f 72 64 20 |>a Windo|wRecord |
|00002690| 61 73 20 74 68 65 20 66 | 69 72 73 74 20 69 74 65 |as the f|irst ite|
|000026a0| 6d 2e 0d 3e 0d 3e 45 2e | 67 2e 2c 0d 3e 0d 3e 73 |m..>.>E.|g.,.>.>s|
|000026b0| 74 72 75 63 74 20 74 4d | 79 57 69 6e 44 61 74 61 |truct tM|yWinData|
|000026c0| 20 7b 0d 3e 20 20 20 2f | 2f 20 20 54 68 69 73 20 | {.> /|/ This |
|000026d0| 6d 75 73 74 20 63 6f 6d | 65 20 66 69 72 73 74 21 |must com|e first!|
|000026e0| 0d 3e 20 20 20 57 69 6e | 64 6f 77 52 65 63 6f 72 |.> Win|dowRecor|
|000026f0| 64 20 20 20 77 69 6e 52 | 65 63 3b 0d 3e 0d 3e 20 |d winR|ec;.>.> |
|00002700| 20 20 2f 2f 20 20 41 64 | 64 69 74 69 6f 6e 61 6c | // Ad|ditional|
|00002710| 20 77 69 6e 64 6f 77 2d | 73 70 65 63 69 66 69 63 | window-|specific|
|00002720| 20 64 61 74 61 20 68 65 | 72 65 2e 2e 2e 0d 3e 20 | data he|re....> |
|00002730| 20 20 48 61 6e 64 6c 65 | 20 20 20 20 20 20 20 20 | Handle| |
|00002740| 20 61 48 61 6e 64 6c 65 | 3b 0d 3e 20 20 20 50 74 | aHandle|;.> Pt|
|00002750| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 61 50 74 |r | aPt|
|00002760| 72 3b 0d 3e 7d 3b 0d 3e | 74 79 70 65 64 65 66 20 |r;.>};.>|typedef |
|00002770| 73 74 72 75 63 74 20 74 | 4d 79 57 69 6e 44 61 74 |struct t|MyWinDat|
|00002780| 61 20 74 4d 79 57 69 6e | 44 61 74 61 3b 0d 3e 74 |a tMyWin|Data;.>t|
|00002790| 79 70 65 64 65 66 20 74 | 4d 79 57 69 6e 44 61 74 |ypedef t|MyWinDat|
|000027a0| 61 20 2a 74 4d 79 57 69 | 6e 50 74 72 3b 0d 3e 0d |a *tMyWi|nPtr;.>.|
|000027b0| 3e 54 68 65 20 74 72 69 | 63 6b 20 6e 6f 77 20 69 |>The tri|ck now i|
|000027c0| 73 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 74 |s that y|ou can t|
|000027d0| 79 70 65 63 61 73 74 20 | 61 6e 79 20 77 69 6e 64 |ypecast |any wind|
|000027e0| 6f 77 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 4d |ow point|er to tM|
|000027f0| 79 57 69 6e 50 74 72 20 | 28 61 6e 64 0d 3e 62 61 |yWinPtr |(and.>ba|
|00002800| 63 6b 29 20 61 6e 64 20 | 61 63 63 65 73 73 20 79 |ck) and |access y|
|00002810| 6f 75 72 20 77 69 6e 64 | 6f 77 2d 73 70 65 63 69 |our wind|ow-speci|
|00002820| 66 69 63 20 64 61 74 61 | 20 66 69 65 6c 64 73 2e |fic data| fields.|
|00002830| 20 59 6f 75 20 6d 69 67 | 68 74 20 77 61 6e 74 20 | You mig|ht want |
|00002840| 74 6f 20 70 6c 61 63 65 | 0d 3e 79 6f 75 72 20 61 |to place|.>your a|
|00002850| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 75 6e 69 |pplicati|on's uni|
|00002860| 71 75 65 20 63 72 65 61 | 74 6f 72 20 63 6f 64 65 |que crea|tor code|
|00002870| 20 69 6e 20 74 68 65 20 | 57 69 6e 64 6f 77 52 65 | in the |WindowRe|
|00002880| 63 6f 72 64 20 72 65 66 | 43 6f 6e 20 66 69 65 6c |cord ref|Con fiel|
|00002890| 64 20 61 6e 64 0d 3e 63 | 68 65 63 6b 20 69 74 20 |d and.>c|heck it |
|000028a0| 66 69 72 73 74 20 74 6f | 20 62 65 20 73 75 72 65 |first to| be sure|
|000028b0| 20 79 6f 75 20 68 61 76 | 65 20 61 20 77 69 6e 64 | you hav|e a wind|
|000028c0| 6f 77 20 74 68 61 74 20 | 62 65 6c 6f 6e 67 73 20 |ow that |belongs |
|000028d0| 74 6f 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 2e |to your |program.|
|000028e0| 0d 3e 0d 3e 49 20 75 73 | 65 20 74 68 69 73 20 61 |.>.>I us|e this a|
|000028f0| 6c 6c 20 74 68 65 20 74 | 69 6d 65 20 61 6e 64 20 |ll the t|ime and |
|00002900| 69 74 20 69 73 20 75 73 | 65 66 75 6c 20 69 6e 20 |it is us|eful in |
|00002910| 6d 61 6e 79 20 6f 74 68 | 65 72 20 70 6c 61 63 65 |many oth|er place|
|00002920| 73 20 77 68 65 72 65 20 | 74 68 65 0d 3e 73 79 73 |s where |the.>sys|
|00002930| 74 65 6d 20 67 69 76 65 | 73 20 79 6f 75 20 61 20 |tem give|s you a |
|00002940| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 6e 20 6f 62 |pointer |to an ob|
|00002950| 6a 65 63 74 20 28 56 42 | 4c 20 74 61 73 6b 73 2c |ject (VB|L tasks,|
|00002960| 20 50 61 72 61 6d 42 6c | 6f 63 6b 73 2c 20 2e 2e | ParamBl|ocks, ..|
|00002970| 2e 29 20 61 6e 64 0d 3e | 79 6f 75 20 6e 65 65 64 |.) and.>|you need|
|00002980| 20 74 6f 20 73 74 6f 72 | 65 20 65 78 74 72 61 20 | to stor|e extra |
|00002990| 64 61 74 61 2e 20 4e 6f | 20 6e 65 65 64 20 74 6f |data. No| need to|
|000029a0| 20 75 73 65 20 61 6e 79 | 20 67 6c 6f 62 61 6c 73 | use any| globals|
|000029b0| 20 66 6f 72 20 74 68 69 | 73 20 73 74 75 66 66 21 | for thi|s stuff!|
|000029c0| 0d 0d 59 6f 75 20 6b 6e | 6f 77 2c 20 74 68 69 73 |..You kn|ow, this|
|000029d0| 20 69 73 20 61 6e 20 6f | 66 74 65 6e 2d 75 73 65 | is an o|ften-use|
|000029e0| 64 20 74 72 69 63 6b 2c | 20 62 75 74 20 49 27 76 |d trick,| but I'v|
|000029f0| 65 20 67 6f 74 20 61 20 | 73 6e 65 61 6b 69 6e 67 |e got a |sneaking|
|00002a00| 20 73 75 73 70 69 63 69 | 6f 6e 0d 74 68 61 74 20 | suspici|on.that |
|00002a10| 69 74 20 6d 69 67 68 74 | 20 6e 6f 74 20 62 65 20 |it might| not be |
|00002a20| 61 20 67 6f 6f 64 20 69 | 64 65 61 20 69 6e 20 74 |a good i|dea in t|
|00002a30| 68 65 20 6c 6f 6e 67 20 | 72 75 6e 2e 20 54 68 65 |he long |run. The|
|00002a40| 20 72 65 61 73 6f 6e 20 | 66 6f 72 20 74 68 69 73 | reason |for this|
|00002a50| 0d 66 65 65 6c 69 6e 67 | 20 69 73 20 62 65 63 61 |.feeling| is beca|
|00002a60| 75 73 65 20 6f 66 20 73 | 6f 6d 65 74 68 69 6e 67 |use of s|omething|
|00002a70| 20 49 20 72 65 61 64 20 | 69 6e 20 22 64 65 76 65 | I read |in "deve|
|00002a80| 6c 6f 70 22 20 61 20 77 | 68 69 6c 65 20 62 61 63 |lop" a w|hile bac|
|00002a90| 6b 2e 20 49 6e 20 74 68 | 65 0d 61 72 74 69 63 6c |k. In th|e.articl|
|00002aa0| 65 20 74 68 61 74 20 44 | 65 61 6e 20 59 75 20 28 |e that D|ean Yu (|
|00002ab0| 49 20 74 68 69 6e 6b 29 | 20 77 72 6f 74 65 20 6f |I think)| wrote o|
|00002ac0| 6e 20 66 6c 6f 61 74 69 | 6e 67 20 77 69 6e 64 6f |n floati|ng windo|
|00002ad0| 77 73 2c 20 74 68 65 72 | 65 20 77 61 73 0d 6d 65 |ws, ther|e was.me|
|00002ae0| 6e 74 69 6f 6e 20 6f 66 | 20 63 6f 6e 76 65 72 74 |ntion of| convert|
|00002af0| 69 6e 67 20 74 68 65 20 | 57 69 6e 64 6f 77 73 2e |ing the |Windows.|
|00002b00| 68 20 69 6e 74 65 72 66 | 61 63 65 73 20 6f 76 65 |h interf|aces ove|
|00002b10| 72 20 74 6f 20 75 73 69 | 6e 67 20 57 69 6e 64 6f |r to usi|ng Windo|
|00002b20| 77 52 65 66 73 0d 69 6e | 73 74 65 61 64 20 6f 66 |wRefs.in|stead of|
|00002b30| 20 57 69 6e 64 6f 77 50 | 74 72 73 2e 20 28 49 6e | WindowP|trs. (In|
|00002b40| 64 65 65 64 2c 20 75 73 | 65 72 73 20 6f 66 20 45 |deed, us|ers of E|
|00002b50| 54 4f 20 23 31 35 20 77 | 69 6c 6c 20 73 65 65 20 |TO #15 w|ill see |
|00002b60| 74 68 61 74 20 74 68 69 | 73 20 63 68 61 6e 67 65 |that thi|s change|
|00002b70| 0d 68 61 73 20 61 6c 72 | 65 61 64 79 20 6f 63 63 |.has alr|eady occ|
|00002b80| 75 72 65 64 2e 29 20 54 | 68 69 73 20 63 68 61 6e |ured.) T|his chan|
|00002b90| 67 65 20 77 61 73 20 62 | 65 69 6e 67 20 64 6f 6e |ge was b|eing don|
|00002ba0| 65 20 74 6f 20 70 72 65 | 70 61 72 65 20 64 65 76 |e to pre|pare dev|
|00002bb0| 65 6c 6f 70 65 72 73 20 | 66 6f 72 0d 74 68 65 20 |elopers |for.the |
|00002bc0| 64 61 79 20 77 68 65 6e | 20 77 69 6e 64 6f 77 73 |day when| windows|
|00002bd0| 20 77 6f 75 6c 64 20 63 | 68 61 6e 67 65 20 66 72 | would c|hange fr|
|00002be0| 6f 6d 20 62 65 69 6e 67 | 20 61 63 63 65 73 73 65 |om being| accesse|
|00002bf0| 64 20 64 69 72 65 63 74 | 6c 79 20 76 69 61 0d 70 |d direct|ly via.p|
|00002c00| 6f 69 6e 74 65 72 73 2c | 20 74 6f 20 74 68 65 20 |ointers,| to the |
|00002c10| 64 61 79 20 77 68 65 6e | 20 74 68 65 79 20 77 6f |day when| they wo|
|00002c20| 75 6c 64 20 62 65 20 61 | 63 63 65 73 73 65 64 20 |uld be a|ccessed |
|00002c30| 76 69 61 20 61 62 73 74 | 72 61 63 74 20 72 65 66 |via abst|ract ref|
|00002c40| 65 72 65 6e 63 65 73 0d | 74 68 61 74 20 63 6f 75 |erences.|that cou|
|00002c50| 6c 64 20 62 65 20 6d 61 | 70 70 65 64 20 62 79 20 |ld be ma|pped by |
|00002c60| 74 68 65 20 57 69 6e 64 | 6f 77 20 4d 61 6e 61 67 |the Wind|ow Manag|
|00002c70| 65 72 20 69 6e 74 65 72 | 6e 61 6c 6c 79 20 74 6f |er inter|nally to|
|00002c80| 20 74 68 65 20 64 61 74 | 61 0d 73 74 72 75 63 74 | the dat|a.struct|
|00002c90| 75 72 65 73 20 72 65 70 | 72 65 73 65 6e 74 69 6e |ures rep|resentin|
|00002ca0| 67 20 61 20 77 69 6e 64 | 6f 77 2e 20 49 74 20 73 |g a wind|ow. It s|
|00002cb0| 65 65 6d 73 20 74 6f 20 | 6d 65 20 74 68 61 74 20 |eems to |me that |
|00002cc0| 69 6e 20 73 75 63 68 20 | 61 20 77 6f 72 6c 64 2c |in such |a world,|
|00002cd0| 20 79 6f 75 0d 63 6f 75 | 6c 64 20 6e 6f 74 20 62 | you.cou|ld not b|
|00002ce0| 65 20 61 62 6c 65 20 74 | 6f 20 65 69 74 68 65 72 |e able t|o either|
|00002cf0| 20 61 29 20 61 70 70 65 | 6e 64 20 79 6f 75 72 20 | a) appe|nd your |
|00002d00| 63 75 73 74 6f 6d 20 64 | 61 74 61 20 74 6f 20 74 |custom d|ata to t|
|00002d10| 68 65 20 73 74 61 6e 64 | 61 72 64 0d 77 69 6e 64 |he stand|ard.wind|
|00002d20| 6f 77 20 64 65 66 69 6e | 69 74 69 6f 6e 2c 20 6f |ow defin|ition, o|
|00002d30| 72 20 62 29 20 72 65 74 | 72 69 65 76 65 20 69 74 |r b) ret|rieve it|
|00002d40| 20 67 69 76 65 6e 20 61 | 20 73 69 6d 70 6c 65 20 | given a| simple |
|00002d50| 57 69 6e 64 6f 77 52 65 | 66 2e 0d 0d 49 20 72 65 |WindowRe|f...I re|
|00002d60| 63 6f 6d 6d 65 6e 64 20 | 75 73 69 6e 67 20 74 68 |commend |using th|
|00002d70| 65 20 72 65 66 43 6f 6e | 20 66 69 65 6c 64 2e 0d |e refCon| field..|
|00002d80| 0d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.- -----|--------|
|00002d90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002dc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 4b 65 |--------|-----.Ke|
|00002dd0| 69 74 68 20 52 6f 6c 6c | 69 6e 20 2d 2d 2d 20 50 |ith Roll|in --- P|
|00002de0| 68 61 6e 74 6f 6d 20 50 | 72 6f 67 72 61 6d 6d 65 |hantom P|rogramme|
|00002df0| 72 20 2d 2d 2d 20 41 70 | 70 6c 65 20 43 6f 6d 70 |r --- Ap|ple Comp|
|00002e00| 75 74 65 72 2c 20 49 6e | 63 2e 20 2d 2d 2d 20 54 |uter, In|c. --- T|
|00002e10| 65 61 6d 20 4e 65 77 74 | 6f 6e 0d 0d 2b 2b 2b 2b |eam Newt|on..++++|
|00002e20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002e30| 2b 2b 2b 2b 2b 2b 2b 0d | 0d 3e 46 72 6f 6d 20 6a |+++++++.|.>From j|
|00002e40| 6f 6e 61 73 77 40 6c 79 | 73 61 74 6f 72 2e 6c 69 |onasw@ly|sator.li|
|00002e50| 75 2e 73 65 20 28 4a 6f | 6e 61 73 20 57 61 6c 6c |u.se (Jo|nas Wall|
|00002e60| 64 65 6e 29 0d 44 61 74 | 65 3a 20 33 31 20 41 75 |den).Dat|e: 31 Au|
|00002e70| 67 20 31 39 39 34 20 31 | 35 3a 31 39 3a 31 30 20 |g 1994 1|5:19:10 |
|00002e80| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00002e90| 3a 20 28 6e 6f 6e 65 29 | 0d 0d 72 6f 6c 6c 69 6e |: (none)|..rollin|
|00002ea0| 40 6e 65 77 74 6f 6e 2e | 61 70 70 6c 65 2e 63 6f |@newton.|apple.co|
|00002eb0| 6d 20 28 4b 65 69 74 68 | 20 52 6f 6c 6c 69 6e 29 |m (Keith| Rollin)|
|00002ec0| 20 77 72 69 74 65 73 3a | 0d 3e 20 49 20 28 4a 6f | writes:|.> I (Jo|
|00002ed0| 6e 61 73 29 20 77 72 6f | 74 65 3a 0d 3e 3e 0d 3e |nas) wro|te:.>>.>|
|00002ee0| 3e 41 20 67 72 65 61 74 | 20 77 61 79 20 74 6f 20 |>A great| way to |
|00002ef0| 65 78 74 65 6e 64 20 57 | 69 6e 64 6f 77 52 65 63 |extend W|indowRec|
|00002f00| 6f 72 64 73 20 69 73 20 | 74 6f 20 64 65 63 6c 61 |ords is |to decla|
|00002f10| 72 65 20 79 6f 75 72 20 | 6f 77 6e 20 64 61 74 61 |re your |own data|
|00002f20| 20 74 79 70 65 20 77 69 | 74 68 0d 3e 3e 61 20 57 | type wi|th.>>a W|
|00002f30| 69 6e 64 6f 77 52 65 63 | 6f 72 64 20 61 73 20 74 |indowRec|ord as t|
|00002f40| 68 65 20 66 69 72 73 74 | 20 69 74 65 6d 2e 0d 3e |he first| item..>|
|00002f50| 3e 0d 3e 3e 20 5b 63 6f | 64 65 20 65 78 61 6d 70 |>.>> [co|de examp|
|00002f60| 6c 65 20 72 65 6d 6f 76 | 65 64 5d 0d 3e 3e 0d 3e |le remov|ed].>>.>|
|00002f70| 3e 54 68 65 20 74 72 69 | 63 6b 20 6e 6f 77 20 69 |>The tri|ck now i|
|00002f80| 73 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 74 |s that y|ou can t|
|00002f90| 79 70 65 63 61 73 74 20 | 61 6e 79 20 77 69 6e 64 |ypecast |any wind|
|00002fa0| 6f 77 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 4d |ow point|er to tM|
|00002fb0| 79 57 69 6e 50 74 72 20 | 28 61 6e 64 0d 3e 3e 62 |yWinPtr |(and.>>b|
|00002fc0| 61 63 6b 29 20 61 6e 64 | 20 61 63 63 65 73 73 20 |ack) and| access |
|00002fd0| 79 6f 75 72 20 77 69 6e | 64 6f 77 2d 73 70 65 63 |your win|dow-spec|
|00002fe0| 69 66 69 63 20 64 61 74 | 61 20 66 69 65 6c 64 73 |ific dat|a fields|
|00002ff0| 2e 20 59 6f 75 20 6d 69 | 67 68 74 20 77 61 6e 74 |. You mi|ght want|
|00003000| 20 74 6f 20 70 6c 61 63 | 65 0d 3e 3e 79 6f 75 72 | to plac|e.>>your|
|00003010| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 27 73 20 75 | applica|tion's u|
|00003020| 6e 69 71 75 65 20 63 72 | 65 61 74 6f 72 20 63 6f |nique cr|eator co|
|00003030| 64 65 20 69 6e 20 74 68 | 65 20 57 69 6e 64 6f 77 |de in th|e Window|
|00003040| 52 65 63 6f 72 64 20 72 | 65 66 43 6f 6e 20 66 69 |Record r|efCon fi|
|00003050| 65 6c 64 20 61 6e 64 0d | 3e 3e 63 68 65 63 6b 20 |eld and.|>>check |
|00003060| 69 74 20 66 69 72 73 74 | 20 74 6f 20 62 65 20 73 |it first| to be s|
|00003070| 75 72 65 20 79 6f 75 20 | 68 61 76 65 20 61 20 77 |ure you |have a w|
|00003080| 69 6e 64 6f 77 20 74 68 | 61 74 20 62 65 6c 6f 6e |indow th|at belon|
|00003090| 67 73 20 74 6f 20 79 6f | 75 72 20 70 72 6f 67 72 |gs to yo|ur progr|
|000030a0| 61 6d 2e 0d 3e 3e 0d 3e | 3e 49 20 75 73 65 20 74 |am..>>.>|>I use t|
|000030b0| 68 69 73 20 61 6c 6c 20 | 74 68 65 20 74 69 6d 65 |his all |the time|
|000030c0| 20 61 6e 64 20 69 74 20 | 69 73 20 75 73 65 66 75 | and it |is usefu|
|000030d0| 6c 20 69 6e 20 6d 61 6e | 79 20 6f 74 68 65 72 20 |l in man|y other |
|000030e0| 70 6c 61 63 65 73 20 77 | 68 65 72 65 20 74 68 65 |places w|here the|
|000030f0| 0d 3e 3e 73 79 73 74 65 | 6d 20 67 69 76 65 73 20 |.>>syste|m gives |
|00003100| 79 6f 75 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |you a po|inter to|
|00003110| 20 61 6e 20 6f 62 6a 65 | 63 74 20 28 56 42 4c 20 | an obje|ct (VBL |
|00003120| 74 61 73 6b 73 2c 20 50 | 61 72 61 6d 42 6c 6f 63 |tasks, P|aramBloc|
|00003130| 6b 73 2c 20 2e 2e 2e 29 | 20 61 6e 64 0d 3e 3e 79 |ks, ...)| and.>>y|
|00003140| 6f 75 20 6e 65 65 64 20 | 74 6f 20 73 74 6f 72 65 |ou need |to store|
|00003150| 20 65 78 74 72 61 20 64 | 61 74 61 2e 20 4e 6f 20 | extra d|ata. No |
|00003160| 6e 65 65 64 20 74 6f 20 | 75 73 65 20 61 6e 79 20 |need to |use any |
|00003170| 67 6c 6f 62 61 6c 73 20 | 66 6f 72 20 74 68 69 73 |globals |for this|
|00003180| 20 73 74 75 66 66 21 0d | 3e 0d 3e 59 6f 75 20 6b | stuff!.|>.>You k|
|00003190| 6e 6f 77 2c 20 74 68 69 | 73 20 69 73 20 61 6e 20 |now, thi|s is an |
|000031a0| 6f 66 74 65 6e 2d 75 73 | 65 64 20 74 72 69 63 6b |often-us|ed trick|
|000031b0| 2c 20 62 75 74 20 49 27 | 76 65 20 67 6f 74 20 61 |, but I'|ve got a|
|000031c0| 20 73 6e 65 61 6b 69 6e | 67 20 73 75 73 70 69 63 | sneakin|g suspic|
|000031d0| 69 6f 6e 0d 3e 74 68 61 | 74 20 69 74 20 6d 69 67 |ion.>tha|t it mig|
|000031e0| 68 74 20 6e 6f 74 20 62 | 65 20 61 20 67 6f 6f 64 |ht not b|e a good|
|000031f0| 20 69 64 65 61 20 69 6e | 20 74 68 65 20 6c 6f 6e | idea in| the lon|
|00003200| 67 20 72 75 6e 2e 20 54 | 68 65 20 72 65 61 73 6f |g run. T|he reaso|
|00003210| 6e 20 66 6f 72 20 74 68 | 69 73 0d 3e 66 65 65 6c |n for th|is.>feel|
|00003220| 69 6e 67 20 69 73 20 62 | 65 63 61 75 73 65 20 6f |ing is b|ecause o|
|00003230| 66 20 73 6f 6d 65 74 68 | 69 6e 67 20 49 20 72 65 |f someth|ing I re|
|00003240| 61 64 20 69 6e 20 22 64 | 65 76 65 6c 6f 70 22 20 |ad in "d|evelop" |
|00003250| 61 20 77 68 69 6c 65 20 | 62 61 63 6b 2e 20 49 6e |a while |back. In|
|00003260| 20 74 68 65 0d 3e 61 72 | 74 69 63 6c 65 20 74 68 | the.>ar|ticle th|
|00003270| 61 74 20 44 65 61 6e 20 | 59 75 20 28 49 20 74 68 |at Dean |Yu (I th|
|00003280| 69 6e 6b 29 20 77 72 6f | 74 65 20 6f 6e 20 66 6c |ink) wro|te on fl|
|00003290| 6f 61 74 69 6e 67 20 77 | 69 6e 64 6f 77 73 2c 20 |oating w|indows, |
|000032a0| 74 68 65 72 65 20 77 61 | 73 0d 3e 6d 65 6e 74 69 |there wa|s.>menti|
|000032b0| 6f 6e 20 6f 66 20 63 6f | 6e 76 65 72 74 69 6e 67 |on of co|nverting|
|000032c0| 20 74 68 65 20 57 69 6e | 64 6f 77 73 2e 68 20 69 | the Win|dows.h i|
|000032d0| 6e 74 65 72 66 61 63 65 | 73 20 6f 76 65 72 20 74 |nterface|s over t|
|000032e0| 6f 20 75 73 69 6e 67 20 | 57 69 6e 64 6f 77 52 65 |o using |WindowRe|
|000032f0| 66 73 0d 3e 69 6e 73 74 | 65 61 64 20 6f 66 20 57 |fs.>inst|ead of W|
|00003300| 69 6e 64 6f 77 50 74 72 | 73 2e 0d 0d 59 65 73 2c |indowPtr|s...Yes,|
|00003310| 20 6e 6f 77 20 74 68 61 | 74 20 79 6f 75 20 6d 65 | now tha|t you me|
|00003320| 6e 74 69 6f 6e 20 69 74 | 20 49 20 72 65 6d 65 6d |ntion it| I remem|
|00003330| 62 65 72 20 74 68 61 74 | 20 61 72 74 69 63 6c 65 |ber that| article|
|00003340| 2e 20 59 6f 75 72 20 70 | 6f 69 6e 74 20 69 73 20 |. Your p|oint is |
|00003350| 76 65 72 79 0d 76 61 6c | 69 64 2c 20 61 6e 64 20 |very.val|id, and |
|00003360| 73 68 6f 75 6c 64 20 62 | 65 20 74 61 6b 65 6e 20 |should b|e taken |
|00003370| 69 6e 74 6f 20 63 6f 6e | 73 69 64 65 72 61 74 69 |into con|siderati|
|00003380| 6f 6e 20 66 6f 72 20 63 | 6f 64 65 20 74 68 61 74 |on for c|ode that|
|00003390| 20 6f 6e 65 20 65 78 70 | 65 63 74 73 0d 74 6f 20 | one exp|ects.to |
|000033a0| 75 73 65 20 66 6f 72 20 | 61 20 6c 6f 6e 67 20 74 |use for |a long t|
|000033b0| 69 6d 65 2e 20 48 6f 77 | 65 76 65 72 2c 20 6c 69 |ime. How|ever, li|
|000033c0| 6b 65 20 79 6f 75 20 73 | 61 69 64 20 79 6f 75 72 |ke you s|aid your|
|000033d0| 73 65 6c 66 2c 20 74 68 | 69 73 20 74 72 69 63 6b |self, th|is trick|
|000033e0| 20 69 73 0d 77 69 64 65 | 6c 79 20 75 73 65 64 20 | is.wide|ly used |
|000033f0| 61 6e 64 20 61 20 6c 6f | 74 20 6f 66 20 61 70 70 |and a lo|t of app|
|00003400| 6c 69 63 61 74 69 6f 6e | 73 20 77 6f 75 6c 64 20 |lication|s would |
|00003410| 62 72 65 61 6b 20 69 66 | 20 74 68 69 6e 67 73 20 |break if| things |
|00003420| 63 68 61 6e 67 65 64 20 | 74 6f 6d 6f 72 72 6f 77 |changed |tomorrow|
|00003430| 2e 0d 0d 3e 20 49 6e 64 | 65 65 64 2c 20 75 73 65 |...> Ind|eed, use|
|00003440| 72 73 20 6f 66 20 45 54 | 4f 20 23 31 35 20 77 69 |rs of ET|O #15 wi|
|00003450| 6c 6c 20 73 65 65 20 74 | 68 61 74 20 74 68 69 73 |ll see t|hat this|
|00003460| 20 63 68 61 6e 67 65 20 | 68 61 73 20 61 6c 72 65 | change |has alre|
|00003470| 61 64 79 20 6f 63 63 75 | 72 65 64 2e 0d 0d 49 20 |ady occu|red...I |
|00003480| 68 61 76 65 6e 27 74 20 | 73 65 65 6e 20 69 74 20 |haven't |seen it |
|00003490| 69 6e 20 74 68 65 20 55 | 6e 69 76 65 72 73 61 6c |in the U|niversal|
|000034a0| 20 49 6e 74 65 72 66 61 | 63 65 73 20 69 6e 63 6c | Interfa|ces incl|
|000034b0| 75 64 65 64 20 6f 6e 20 | 43 57 34 2e 20 41 72 65 |uded on |CW4. Are|
|000034c0| 20 74 68 65 20 6f 6e 65 | 73 0d 6f 6e 20 45 54 4f | the one|s.on ETO|
|000034d0| 20 23 31 35 20 64 69 66 | 66 65 72 65 6e 74 3f 0d | #15 dif|ferent?.|
|000034e0| 0d 49 20 61 67 72 65 65 | 20 74 68 61 74 20 68 69 |.I agree| that hi|
|000034f0| 64 69 6e 67 20 74 68 65 | 20 69 6e 74 65 72 6e 61 |ding the| interna|
|00003500| 6c 20 73 74 72 75 63 74 | 75 72 65 20 6f 66 20 74 |l struct|ure of t|
|00003510| 68 69 6e 67 73 20 69 73 | 20 61 20 67 6f 6f 64 20 |hings is| a good |
|00003520| 74 68 69 6e 67 20 61 73 | 20 69 74 0d 77 69 6c 6c |thing as| it.will|
|00003530| 20 6d 61 6b 65 20 69 74 | 20 65 61 73 69 65 72 20 | make it| easier |
|00003540| 66 6f 72 20 41 70 70 6c | 65 20 74 6f 20 63 68 61 |for Appl|e to cha|
|00003550| 6e 67 65 20 74 68 65 20 | 73 79 73 74 65 6d 20 77 |nge the |system w|
|00003560| 69 74 68 6f 75 74 20 62 | 72 65 61 6b 69 6e 67 0d |ithout b|reaking.|
|00003570| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 2e 0d 0d 3e |applicat|ions...>|
|00003580| 49 20 72 65 63 6f 6d 6d | 65 6e 64 20 75 73 69 6e |I recomm|end usin|
|00003590| 67 20 74 68 65 20 72 65 | 66 43 6f 6e 20 66 69 65 |g the re|fCon fie|
|000035a0| 6c 64 2e 0d 0d 57 68 69 | 63 68 20 6c 65 61 64 73 |ld...Whi|ch leads|
|000035b0| 20 75 73 20 62 61 63 6b | 20 74 6f 20 74 68 65 20 | us back| to the |
|000035c0| 6f 72 69 67 69 6e 61 6c | 20 70 72 6f 62 6c 65 6d |original| problem|
|000035d0| 20 77 68 65 72 65 20 74 | 68 65 20 70 6f 73 74 65 | where t|he poste|
|000035e0| 72 20 77 61 73 20 61 66 | 72 61 69 64 20 74 6f 0d |r was af|raid to.|
|000035f0| 74 72 65 61 74 20 74 68 | 69 73 20 66 69 65 6c 64 |treat th|is field|
|00003600| 20 61 73 20 61 20 70 6f | 69 6e 74 65 72 20 69 6e | as a po|inter in|
|00003610| 20 63 61 73 65 20 73 6f | 6d 65 20 6f 74 68 65 72 | case so|me other|
|00003620| 20 77 69 6e 64 6f 77 20 | 61 70 70 65 61 72 65 64 | window |appeared|
|00003630| 20 69 6e 20 68 69 73 0d | 61 70 70 6c 69 63 61 74 | in his.|applicat|
|00003640| 69 6f 6e 27 73 20 77 69 | 6e 64 6f 77 20 6c 69 73 |ion's wi|ndow lis|
|00003650| 74 20 28 43 6f 6d 6d 73 | 54 6f 6f 6c 62 6f 78 20 |t (Comms|Toolbox |
|00003660| 28 64 69 64 20 49 20 73 | 70 65 6c 6c 20 69 74 20 |(did I s|pell it |
|00003670| 72 69 67 68 74 3f 20 3a | 2d 29 20 77 69 6e 64 6f |right? :|-) windo|
|00003680| 77 73 0d 77 65 72 65 20 | 6d 65 6e 74 69 6f 6e 65 |ws.were |mentione|
|00003690| 64 20 61 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 29 |d as an |example)|
|000036a0| 2e 0d 0d 4f 6e 65 20 63 | 61 6e 20 6f 66 20 63 6f |...One c|an of co|
|000036b0| 75 72 73 65 20 66 69 72 | 73 74 20 63 68 65 63 6b |urse fir|st check|
|000036c0| 20 74 68 65 20 77 69 6e | 64 6f 77 4b 69 6e 64 20 | the win|dowKind |
|000036d0| 66 69 65 6c 64 2c 20 77 | 68 69 63 68 20 64 6f 65 |field, w|hich doe|
|000036e0| 73 6e 27 74 20 68 61 76 | 65 20 61 6e 79 0d 61 63 |sn't hav|e any.ac|
|000036f0| 63 65 73 73 6f 72 20 66 | 75 6e 63 74 69 6f 6e 2e |cessor f|unction.|
|00003700| 2e 2e 0d 0d 3e 4b 65 69 | 74 68 20 52 6f 6c 6c 69 |....>Kei|th Rolli|
|00003710| 6e 20 2d 2d 2d 20 50 68 | 61 6e 74 6f 6d 20 50 72 |n --- Ph|antom Pr|
|00003720| 6f 67 72 61 6d 6d 65 72 | 20 2d 2d 2d 20 41 70 70 |ogrammer| --- App|
|00003730| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00003740| 2e 20 2d 2d 2d 20 54 65 | 61 6d 20 4e 65 77 74 6f |. --- Te|am Newto|
|00003750| 6e 0d 0d 2d 2d 0d 60 2e | 60 2e 20 20 20 4a 6f 6e |n..--.`.|`. Jon|
|00003760| 61 73 20 57 61 6c 6c 64 | 65 6e 20 20 20 20 20 20 |as Walld|en |
|00003770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 60 2e | | `.|
|00003780| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|00003790| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|000037a0| 0d 60 2e 60 2e 60 2e 20 | 20 20 49 6e 74 65 72 6e |.`.`.`. | Intern|
|000037b0| 65 74 3a 20 6a 6f 6e 61 | 73 77 40 6c 79 73 61 74 |et: jona|sw@lysat|
|000037c0| 6f 72 2e 6c 69 75 2e 73 | 65 20 20 60 2e 60 2e 60 |or.liu.s|e `.`.`|
|000037d0| 2e 60 2e 60 2e 60 2e 60 | 2e 60 2e 60 2e 60 2e 60 |.`.`.`.`|.`.`.`.`|
|000037e0| 2e 60 2e 60 2e 60 2e 60 | 2e 60 2e 0d 60 2e 60 2e |.`.`.`.`|.`..`.`.|
|000037f0| 60 2e 60 2e 20 20 20 41 | 70 70 6c 65 4c 69 6e 6b |`.`. A|ppleLink|
|00003800| 3a 20 73 77 31 33 36 39 | 20 20 20 20 20 20 20 20 |: sw1369| |
|00003810| 20 20 20 20 20 20 20 20 | 60 2e 60 2e 60 2e 60 2e | |`.`.`.`.|
|00003820| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|00003830| 60 2e 60 2e 60 2e 0d 0d | 2b 2b 2b 2b 2b 2b 2b 2b |`.`.`...|++++++++|
|00003840| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003850| 2b 2b 2b 0d 0d 3e 46 72 | 6f 6d 20 62 62 40 6c 69 |+++..>Fr|om bb@li|
|00003860| 67 68 74 73 69 64 65 2e | 63 6f 6d 20 28 42 6f 62 |ghtside.|com (Bob|
|00003870| 20 42 72 61 64 6c 65 79 | 29 0d 44 61 74 65 3a 20 | Bradley|).Date: |
|00003880| 54 75 65 2c 20 33 30 20 | 41 75 67 20 31 39 39 34 |Tue, 30 |Aug 1994|
|00003890| 20 30 31 3a 35 30 3a 30 | 36 20 2d 30 38 30 30 0d | 01:50:0|6 -0800.|
|000038a0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 53 53 |Organiza|tion: SS|
|000038b0| 20 53 6f 66 74 77 61 72 | 65 20 49 6e 63 2e 0d 0d | Softwar|e Inc...|
|000038c0| 49 6e 20 61 72 74 69 63 | 6c 65 20 3c 33 34 32 37 |In artic|le <3427|
|000038d0| 31 65 24 69 33 33 40 6e | 65 77 73 79 2e 69 66 6d |1e$i33@n|ewsy.ifm|
|000038e0| 2e 6c 69 75 2e 73 65 3e | 2c 20 6a 6f 6e 61 73 77 |.liu.se>|, jonasw|
|000038f0| 40 6c 79 73 61 74 6f 72 | 2e 6c 69 75 2e 73 65 20 |@lysator|.liu.se |
|00003900| 28 4a 6f 6e 61 73 0d 57 | 61 6c 6c 64 65 6e 29 20 |(Jonas.W|allden) |
|00003910| 77 72 6f 74 65 3a 0d 0d | 3e 20 4f 6e 65 20 63 61 |wrote:..|> One ca|
|00003920| 6e 20 6f 66 20 63 6f 75 | 72 73 65 20 66 69 72 73 |n of cou|rse firs|
|00003930| 74 20 63 68 65 63 6b 20 | 74 68 65 20 77 69 6e 64 |t check |the wind|
|00003940| 6f 77 4b 69 6e 64 20 66 | 69 65 6c 64 2c 20 77 68 |owKind f|ield, wh|
|00003950| 69 63 68 20 64 6f 65 73 | 6e 27 74 20 68 61 76 65 |ich does|n't have|
|00003960| 20 61 6e 79 0d 3e 20 61 | 63 63 65 73 73 6f 72 20 | any.> a|ccessor |
|00003970| 66 75 6e 63 74 69 6f 6e | 2e 2e 2e 0d 0d 54 68 65 |function|.....The|
|00003980| 20 6f 6e 6c 79 20 70 72 | 6f 62 6c 65 6d 20 49 27 | only pr|oblem I'|
|00003990| 76 65 20 66 6f 75 6e 64 | 20 77 69 74 68 20 74 68 |ve found| with th|
|000039a0| 69 73 20 69 73 20 77 68 | 65 6e 20 75 73 69 6e 67 |is is wh|en using|
|000039b0| 20 44 69 61 6c 6f 67 73 | 20 77 68 69 63 68 20 64 | Dialogs| which d|
|000039c0| 6f 6e 27 74 0d 77 6f 72 | 6b 20 70 72 6f 70 65 72 |on't.wor|k proper|
|000039d0| 6c 79 20 77 69 74 68 20 | 49 73 44 69 61 6c 6f 67 |ly with |IsDialog|
|000039e0| 45 76 65 6e 74 20 61 6e | 64 20 44 69 61 6c 6f 67 |Event an|d Dialog|
|000039f0| 53 65 6c 65 63 74 20 69 | 66 20 79 6f 75 20 63 68 |Select i|f you ch|
|00003a00| 61 6e 67 65 20 74 68 65 | 0d 77 69 6e 64 6f 77 4b |ange the|.windowK|
|00003a10| 69 6e 64 20 66 69 65 6c | 64 20 74 6f 20 73 6f 6d |ind fiel|d to som|
|00003a20| 65 74 68 69 6e 67 20 6f | 74 68 65 72 20 74 68 61 |ething o|ther tha|
|00003a30| 6e 20 64 69 61 6c 6f 67 | 4b 69 6e 64 2e 20 54 68 |n dialog|Kind. Th|
|00003a40| 65 20 6f 6e 6c 79 20 73 | 6f 6c 75 74 69 6f 6e 0d |e only s|olution.|
|00003a50| 49 27 76 65 20 66 6f 75 | 6e 64 20 69 6e 20 74 68 |I've fou|nd in th|
|00003a60| 61 74 20 63 61 73 65 20 | 69 73 20 74 6f 20 61 70 |at case |is to ap|
|00003a70| 70 65 6e 64 20 64 61 74 | 61 20 74 6f 20 74 68 65 |pend dat|a to the|
|00003a80| 20 57 69 6e 64 6f 77 52 | 65 63 6f 72 64 2e 0d 0d | WindowR|ecord...|
|00003a90| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003aa0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00003ab0| 6f 6d 20 6d 68 6c 40 69 | 63 66 2e 68 72 62 2e 63 |om mhl@i|cf.hrb.c|
|00003ac0| 6f 6d 20 28 4d 41 52 4b | 20 48 2e 20 4c 49 4e 54 |om (MARK| H. LINT|
|00003ad0| 4f 4e 29 0d 44 61 74 65 | 3a 20 33 31 20 41 75 67 |ON).Date|: 31 Aug|
|00003ae0| 20 39 34 20 31 35 3a 33 | 39 3a 34 32 20 45 53 54 | 94 15:3|9:42 EST|
|00003af0| 0d 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 48 |.Organiz|ation: H|
|00003b00| 52 42 20 53 79 73 74 65 | 6d 73 2c 20 49 6e 63 2e |RB Syste|ms, Inc.|
|00003b10| 0d 0d 49 6e 20 61 72 74 | 69 63 6c 65 20 3c 33 34 |..In art|icle <34|
|00003b20| 32 37 31 65 24 69 33 33 | 40 6e 65 77 73 79 2e 69 |271e$i33|@newsy.i|
|00003b30| 66 6d 2e 6c 69 75 2e 73 | 65 3e 2c 20 6a 6f 6e 61 |fm.liu.s|e>, jona|
|00003b40| 73 77 40 6c 79 73 61 74 | 6f 72 2e 6c 69 75 2e 73 |sw@lysat|or.liu.s|
|00003b50| 65 20 28 4a 6f 6e 61 73 | 20 57 61 6c 6c 64 65 6e |e (Jonas| Wallden|
|00003b60| 29 20 77 72 69 74 65 73 | 3a 0d 3e 20 72 6f 6c 6c |) writes|:.> roll|
|00003b70| 69 6e 40 6e 65 77 74 6f | 6e 2e 61 70 70 6c 65 2e |in@newto|n.apple.|
|00003b80| 63 6f 6d 20 28 4b 65 69 | 74 68 20 52 6f 6c 6c 69 |com (Kei|th Rolli|
|00003b90| 6e 29 20 77 72 69 74 65 | 73 3a 0d 3e 3e 20 49 20 |n) write|s:.>> I |
|00003ba0| 28 4a 6f 6e 61 73 29 20 | 77 72 6f 74 65 3a 0d 3e |(Jonas) |wrote:.>|
|00003bb0| 3e 3e 0d 3e 3e 3e 41 20 | 67 72 65 61 74 20 77 61 |>>.>>>A |great wa|
|00003bc0| 79 20 74 6f 20 65 78 74 | 65 6e 64 20 57 69 6e 64 |y to ext|end Wind|
|00003bd0| 6f 77 52 65 63 6f 72 64 | 73 20 69 73 20 74 6f 20 |owRecord|s is to |
|00003be0| 64 65 63 6c 61 72 65 20 | 79 6f 75 72 20 6f 77 6e |declare |your own|
|00003bf0| 20 64 61 74 61 20 74 79 | 70 65 20 77 69 74 68 0d | data ty|pe with.|
|00003c00| 3e 3e 3e 61 20 57 69 6e | 64 6f 77 52 65 63 6f 72 |>>>a Win|dowRecor|
|00003c10| 64 20 61 73 20 74 68 65 | 20 66 69 72 73 74 20 69 |d as the| first i|
|00003c20| 74 65 6d 2e 0d 3e 3e 3e | 0d 3e 3e 0d 3e 3e 59 6f |tem..>>>|.>>.>>Yo|
|00003c30| 75 20 6b 6e 6f 77 2c 20 | 74 68 69 73 20 69 73 20 |u know, |this is |
|00003c40| 61 6e 20 6f 66 74 65 6e | 2d 75 73 65 64 20 74 72 |an often|-used tr|
|00003c50| 69 63 6b 2c 20 62 75 74 | 20 49 27 76 65 20 67 6f |ick, but| I've go|
|00003c60| 74 20 61 20 73 6e 65 61 | 6b 69 6e 67 20 73 75 73 |t a snea|king sus|
|00003c70| 70 69 63 69 6f 6e 0d 3e | 3e 74 68 61 74 20 69 74 |picion.>|>that it|
|00003c80| 20 6d 69 67 68 74 20 6e | 6f 74 20 62 65 20 61 20 | might n|ot be a |
|00003c90| 67 6f 6f 64 20 69 64 65 | 61 20 69 6e 20 74 68 65 |good ide|a in the|
|00003ca0| 20 6c 6f 6e 67 20 72 75 | 6e 2e 20 54 68 65 20 72 | long ru|n. The r|
|00003cb0| 65 61 73 6f 6e 20 66 6f | 72 20 74 68 69 73 0d 3e |eason fo|r this.>|
|00003cc0| 3e 66 65 65 6c 69 6e 67 | 20 69 73 20 62 65 63 61 |>feeling| is beca|
|00003cd0| 75 73 65 20 6f 66 20 73 | 6f 6d 65 74 68 69 6e 67 |use of s|omething|
|00003ce0| 20 49 20 72 65 61 64 20 | 69 6e 20 22 64 65 76 65 | I read |in "deve|
|00003cf0| 6c 6f 70 22 20 61 20 77 | 68 69 6c 65 20 62 61 63 |lop" a w|hile bac|
|00003d00| 6b 2e 20 0d 3e 20 0d 3e | 20 59 65 73 2c 20 6e 6f |k. .> .>| Yes, no|
|00003d10| 77 20 74 68 61 74 20 79 | 6f 75 20 6d 65 6e 74 69 |w that y|ou menti|
|00003d20| 6f 6e 20 69 74 20 49 20 | 72 65 6d 65 6d 62 65 72 |on it I |remember|
|00003d30| 20 74 68 61 74 20 61 72 | 74 69 63 6c 65 2e 20 59 | that ar|ticle. Y|
|00003d40| 6f 75 72 20 70 6f 69 6e | 74 20 69 73 20 76 65 72 |our poin|t is ver|
|00003d50| 79 0d 3e 20 76 61 6c 69 | 64 2c 20 61 6e 64 20 73 |y.> vali|d, and s|
|00003d60| 68 6f 75 6c 64 20 62 65 | 20 74 61 6b 65 6e 20 69 |hould be| taken i|
|00003d70| 6e 74 6f 20 63 6f 6e 73 | 69 64 65 72 61 74 69 6f |nto cons|ideratio|
|00003d80| 6e 20 66 6f 72 20 63 6f | 64 65 20 74 68 61 74 20 |n for co|de that |
|00003d90| 6f 6e 65 20 65 78 70 65 | 63 74 73 0d 3e 20 74 6f |one expe|cts.> to|
|00003da0| 20 75 73 65 20 66 6f 72 | 20 61 20 6c 6f 6e 67 20 | use for| a long |
|00003db0| 74 69 6d 65 2e 20 0d 20 | 20 20 5b 73 6e 69 70 5d |time. . | [snip]|
|00003dc0| 0d 3e 20 0d 3e 20 0d 3e | 3e 49 20 72 65 63 6f 6d |.> .> .>|>I recom|
|00003dd0| 6d 65 6e 64 20 75 73 69 | 6e 67 20 74 68 65 20 72 |mend usi|ng the r|
|00003de0| 65 66 43 6f 6e 20 66 69 | 65 6c 64 2e 0d 3e 20 0d |efCon fi|eld..> .|
|00003df0| 3e 20 57 68 69 63 68 20 | 6c 65 61 64 73 20 75 73 |> Which |leads us|
|00003e00| 20 62 61 63 6b 20 74 6f | 20 74 68 65 20 6f 72 69 | back to| the ori|
|00003e10| 67 69 6e 61 6c 20 70 72 | 6f 62 6c 65 6d 20 77 68 |ginal pr|oblem wh|
|00003e20| 65 72 65 20 74 68 65 20 | 70 6f 73 74 65 72 20 77 |ere the |poster w|
|00003e30| 61 73 20 61 66 72 61 69 | 64 20 74 6f 0d 3e 20 74 |as afrai|d to.> t|
|00003e40| 72 65 61 74 20 74 68 69 | 73 20 66 69 65 6c 64 20 |reat thi|s field |
|00003e50| 61 73 20 61 20 70 6f 69 | 6e 74 65 72 20 69 6e 20 |as a poi|nter in |
|00003e60| 63 61 73 65 20 73 6f 6d | 65 20 6f 74 68 65 72 20 |case som|e other |
|00003e70| 77 69 6e 64 6f 77 20 61 | 70 70 65 61 72 65 64 20 |window a|ppeared |
|00003e80| 69 6e 20 68 69 73 0d 3e | 20 61 70 70 6c 69 63 61 |in his.>| applica|
|00003e90| 74 69 6f 6e 27 73 20 77 | 69 6e 64 6f 77 20 6c 69 |tion's w|indow li|
|00003ea0| 73 74 20 28 43 6f 6d 6d | 73 54 6f 6f 6c 62 6f 78 |st (Comm|sToolbox|
|00003eb0| 20 28 64 69 64 20 49 20 | 73 70 65 6c 6c 20 69 74 | (did I |spell it|
|00003ec0| 20 72 69 67 68 74 3f 20 | 3a 2d 29 20 77 69 6e 64 | right? |:-) wind|
|00003ed0| 6f 77 73 0d 3e 20 77 65 | 72 65 20 6d 65 6e 74 69 |ows.> we|re menti|
|00003ee0| 6f 6e 65 64 20 61 73 20 | 61 6e 20 65 78 61 6d 70 |oned as |an examp|
|00003ef0| 6c 65 29 2e 0d 3e 20 0d | 3e 20 4f 6e 65 20 63 61 |le)..> .|> One ca|
|00003f00| 6e 20 6f 66 20 63 6f 75 | 72 73 65 20 66 69 72 73 |n of cou|rse firs|
|00003f10| 74 20 63 68 65 63 6b 20 | 74 68 65 20 77 69 6e 64 |t check |the wind|
|00003f20| 6f 77 4b 69 6e 64 20 66 | 69 65 6c 64 2c 20 77 68 |owKind f|ield, wh|
|00003f30| 69 63 68 20 64 6f 65 73 | 6e 27 74 20 68 61 76 65 |ich does|n't have|
|00003f40| 20 61 6e 79 0d 3e 20 61 | 63 63 65 73 73 6f 72 20 | any.> a|ccessor |
|00003f50| 66 75 6e 63 74 69 6f 6e | 2e 2e 2e 0d 3e 20 0d 3e |function|....> .>|
|00003f60| 3e 4b 65 69 74 68 20 52 | 6f 6c 6c 69 6e 20 2d 2d |>Keith R|ollin --|
|00003f70| 2d 20 50 68 61 6e 74 6f | 6d 20 50 72 6f 67 72 61 |- Phanto|m Progra|
|00003f80| 6d 6d 65 72 20 2d 2d 2d | 20 41 70 70 6c 65 20 43 |mmer ---| Apple C|
|00003f90| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 20 2d 2d |omputer,| Inc. --|
|00003fa0| 2d 20 54 65 61 6d 20 4e | 65 77 74 6f 6e 0d 3e 20 |- Team N|ewton.> |
|00003fb0| 0d 0d 57 68 65 6e 20 6d | 79 20 61 70 70 6c 69 63 |..When m|y applic|
|00003fc0| 61 74 69 6f 6e 73 20 63 | 72 65 61 74 65 20 74 68 |ations c|reate th|
|00003fd0| 65 69 72 20 6f 77 6e 20 | 77 69 6e 64 6f 77 73 2c |eir own |windows,|
|00003fe0| 20 74 68 65 79 20 61 6c | 6c 6f 63 61 74 65 20 61 | they al|locate a|
|00003ff0| 20 72 65 6c 6f 63 61 74 | 61 62 6c 65 0d 62 6c 6f | relocat|able.blo|
|00004000| 63 6b 20 28 76 69 61 20 | 4e 65 77 48 61 6e 64 6c |ck (via |NewHandl|
|00004010| 65 29 20 74 6f 20 61 20 | 73 74 72 75 63 74 75 72 |e) to a |structur|
|00004020| 65 20 64 65 73 63 72 69 | 62 69 6e 67 20 74 68 65 |e descri|bing the|
|00004030| 20 77 69 6e 64 6f 77 2e | 20 54 68 65 20 73 74 72 | window.| The str|
|00004040| 75 63 74 75 72 65 20 6f | 66 0d 74 68 69 73 20 69 |ucture o|f.this i|
|00004050| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 76 61 72 69 65 |nformati|on varie|
|00004060| 73 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 70 |s based |on the p|
|00004070| 61 72 74 69 63 75 6c 61 | 72 20 61 70 70 6c 69 63 |articula|r applic|
|00004080| 61 74 69 6f 6e 2c 20 62 | 75 74 20 61 6c 77 61 79 |ation, b|ut alway|
|00004090| 73 0d 69 6e 63 6c 75 64 | 65 73 2c 20 61 74 20 6d |s.includ|es, at m|
|000040a0| 69 6e 69 6d 75 6d 2c 20 | 61 73 20 69 74 73 20 66 |inimum, |as its f|
|000040b0| 69 72 73 74 20 66 69 65 | 6c 64 20 61 6e 20 69 64 |irst fie|ld an id|
|000040c0| 65 6e 74 69 66 69 65 72 | 2e 0d 0d 50 6c 65 61 73 |entifier|...Pleas|
|000040d0| 65 20 63 6f 6e 73 69 64 | 65 72 20 74 68 65 20 66 |e consid|er the f|
|000040e0| 6f 6c 6c 6f 77 69 6e 67 | 20 70 73 65 75 64 6f 2d |ollowing| pseudo-|
|000040f0| 63 6f 64 65 2c 20 61 73 | 20 49 20 61 6d 20 6e 6f |code, as| I am no|
|00004100| 74 20 61 74 20 6d 79 20 | 4d 61 63 69 6e 74 6f 73 |t at my |Macintos|
|00004110| 68 20 61 74 20 74 68 65 | 0d 6d 6f 6d 65 6e 74 2e |h at the|.moment.|
|00004120| 0d 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00004130| 20 4d 69 6e 57 69 6e 49 | 6e 66 6f 20 7b 0d 20 20 | MinWinI|nfo {. |
|00004140| 20 20 4f 53 54 79 70 65 | 20 69 64 65 6e 74 69 66 | OSType| identif|
|00004150| 69 65 72 3b 0d 7d 20 4d | 69 6e 57 69 6e 49 6e 66 |ier;.} M|inWinInf|
|00004160| 6f 52 65 63 6f 72 64 2c | 20 2a 4d 69 6e 57 69 6e |oRecord,| *MinWin|
|00004170| 49 6e 66 6f 50 74 72 2c | 20 2a 2a 4d 69 6e 57 69 |InfoPtr,| **MinWi|
|00004180| 6e 49 6e 66 6f 48 61 6e | 64 6c 65 3b 0d 0d 42 6f |nInfoHan|dle;..Bo|
|00004190| 6f 6c 65 61 6e 20 4f 77 | 6e 57 69 6e 64 6f 77 28 |olean Ow|nWindow(|
|000041a0| 57 69 6e 64 6f 77 50 74 | 72 20 61 57 69 6e 64 6f |WindowPt|r aWindo|
|000041b0| 77 29 20 7b 0d 20 20 20 | 20 42 6f 6f 6c 65 61 6e |w) {. | Boolean|
|000041c0| 20 6f 77 6e 57 69 6e 64 | 6f 77 20 3d 20 66 61 6c | ownWind|ow = fal|
|000041d0| 73 65 3b 0d 20 20 20 20 | 4d 69 6e 57 69 6e 49 6e |se;. |MinWinIn|
|000041e0| 66 6f 48 61 6e 64 6c 65 | 20 74 68 65 49 6e 66 6f |foHandle| theInfo|
|000041f0| 48 61 6e 64 6c 65 3b 0d | 0d 20 20 20 20 69 66 20 |Handle;.|. if |
|00004200| 28 61 57 69 6e 64 6f 77 | 20 21 3d 20 6e 69 6c 29 |(aWindow| != nil)|
|00004210| 20 7b 20 2f 2a 20 63 61 | 6e 20 6f 6e 6c 79 20 6f | { /* ca|n only o|
|00004220| 77 6e 20 65 78 69 73 74 | 65 6e 74 20 77 69 6e 64 |wn exist|ent wind|
|00004230| 6f 77 73 20 2a 2f 0d 20 | 20 20 20 20 20 20 20 74 |ows */. | t|
|00004240| 68 65 49 6e 66 6f 48 61 | 6e 64 6c 65 20 3d 20 28 |heInfoHa|ndle = (|
|00004250| 4d 69 6e 57 69 6e 49 6e | 66 6f 48 61 6e 64 6c 65 |MinWinIn|foHandle|
|00004260| 29 47 65 74 57 52 65 66 | 43 6f 6e 28 61 57 69 6e |)GetWRef|Con(aWin|
|00004270| 64 6f 77 29 3b 0d 20 20 | 20 20 20 20 20 20 69 66 |dow);. | if|
|00004280| 20 28 74 68 65 49 6e 66 | 6f 48 61 6e 64 6c 65 20 | (theInf|oHandle |
|00004290| 21 3d 20 6e 69 6c 29 20 | 7b 20 2f 2a 20 61 6e 64 |!= nil) |{ /* and|
|000042a0| 20 77 65 20 61 6c 77 61 | 79 73 20 61 64 64 20 61 | we alwa|ys add a|
|000042b0| 20 72 65 66 43 6f 6e 20 | 2a 2f 0d 20 20 20 20 20 | refCon |*/. |
|000042c0| 20 20 20 20 20 20 20 69 | 66 20 28 28 2a 2a 74 68 | i|f ((**th|
|000042d0| 65 49 6e 66 6f 48 61 6e | 64 6c 65 29 2e 69 64 65 |eInfoHan|dle).ide|
|000042e0| 6e 74 69 66 69 65 72 20 | 3d 3d 20 6b 54 68 69 73 |ntifier |== kThis|
|000042f0| 41 70 70 53 69 67 6e 61 | 74 75 72 65 29 20 7b 0d |AppSigna|ture) {.|
|00004300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004310| 6f 77 6e 57 69 6e 64 6f | 77 20 3d 20 74 72 75 65 |ownWindo|w = true|
|00004320| 3b 20 2f 2a 20 61 6e 64 | 20 74 68 65 20 66 69 72 |; /* and| the fir|
|00004330| 73 74 20 66 6f 75 72 20 | 62 79 74 65 73 20 6d 61 |st four |bytes ma|
|00004340| 74 63 68 20 6f 75 72 20 | 73 69 67 20 2a 2f 0d 20 |tch our |sig */. |
|00004350| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0d 20 20 20 | | }. |
|00004360| 20 20 20 20 20 7d 0d 20 | 20 20 20 7d 0d 20 20 20 | }. | }. |
|00004370| 20 72 65 74 75 72 6e 20 | 6f 77 6e 57 69 6e 64 6f | return |ownWindo|
|00004380| 77 3b 0d 7d 0d 0d 53 6f | 20 77 68 65 6e 65 76 65 |w;.}..So| wheneve|
|00004390| 72 20 49 20 6e 65 65 64 | 20 74 6f 20 73 65 65 20 |r I need| to see |
|000043a0| 77 68 65 74 68 65 72 20 | 61 20 77 69 6e 64 6f 77 |whether |a window|
|000043b0| 20 69 73 20 6d 69 6e 65 | 20 49 20 6a 75 73 74 20 | is mine| I just |
|000043c0| 63 61 6c 6c 20 4f 77 6e | 57 69 6e 64 6f 77 2e 0d |call Own|Window..|
|000043d0| 0d 44 6f 65 73 20 74 68 | 69 73 20 68 65 6c 70 3f |.Does th|is help?|
|000043e0| 20 4f 72 20 64 69 64 20 | 49 20 6d 69 73 73 20 74 | Or did |I miss t|
|000043f0| 68 65 20 71 75 65 73 74 | 69 6f 6e 20 65 6e 74 69 |he quest|ion enti|
|00004400| 72 65 6c 79 3f 0d 0d 4d | 61 72 6b 0d 2d 20 2d 2d |rely?..M|ark.- --|
|00004410| 2d 2d 2d 2d 2d 2d 0d 49 | 20 64 6f 6e 27 74 20 6b |------.I| don't k|
|00004420| 6e 6f 77 20 77 68 65 74 | 68 65 72 20 6d 79 20 65 |now whet|her my e|
|00004430| 6d 70 6c 6f 79 65 72 20 | 68 61 73 20 6f 70 69 6e |mployer |has opin|
|00004440| 69 6f 6e 73 2e 0d 0d 2b | 2b 2b 2b 2b 2b 2b 2b 2b |ions...+|++++++++|
|00004450| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004460| 2b 2b 0d 0d 3e 46 72 6f | 6d 20 6a 6f 6e 61 73 77 |++..>Fro|m jonasw|
|00004470| 40 6c 79 73 61 74 6f 72 | 2e 6c 69 75 2e 73 65 20 |@lysator|.liu.se |
|00004480| 28 4a 6f 6e 61 73 20 57 | 61 6c 6c 64 65 6e 29 0d |(Jonas W|allden).|
|00004490| 44 61 74 65 3a 20 33 31 | 20 41 75 67 20 31 39 39 |Date: 31| Aug 199|
|000044a0| 34 20 32 31 3a 33 35 3a | 30 32 20 47 4d 54 0d 4f |4 21:35:|02 GMT.O|
|000044b0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 28 6e 6f |rganizat|ion: (no|
|000044c0| 6e 65 29 0d 0d 6d 68 6c | 40 69 63 66 2e 68 72 62 |ne)..mhl|@icf.hrb|
|000044d0| 2e 63 6f 6d 20 28 4d 41 | 52 4b 20 48 2e 20 4c 49 |.com (MA|RK H. LI|
|000044e0| 4e 54 4f 4e 29 20 77 72 | 69 74 65 73 3a 0d 3e 0d |NTON) wr|ites:.>.|
|000044f0| 3e 57 68 65 6e 20 6d 79 | 20 61 70 70 6c 69 63 61 |>When my| applica|
|00004500| 74 69 6f 6e 73 20 63 72 | 65 61 74 65 20 74 68 65 |tions cr|eate the|
|00004510| 69 72 20 6f 77 6e 20 77 | 69 6e 64 6f 77 73 2c 20 |ir own w|indows, |
|00004520| 74 68 65 79 20 61 6c 6c | 6f 63 61 74 65 20 61 20 |they all|ocate a |
|00004530| 72 65 6c 6f 63 61 74 61 | 62 6c 65 0d 3e 62 6c 6f |relocata|ble.>blo|
|00004540| 63 6b 20 28 76 69 61 20 | 4e 65 77 48 61 6e 64 6c |ck (via |NewHandl|
|00004550| 65 29 20 74 6f 20 61 20 | 73 74 72 75 63 74 75 72 |e) to a |structur|
|00004560| 65 20 64 65 73 63 72 69 | 62 69 6e 67 20 74 68 65 |e descri|bing the|
|00004570| 20 77 69 6e 64 6f 77 2e | 20 54 68 65 20 73 74 72 | window.| The str|
|00004580| 75 63 74 75 72 65 20 6f | 66 0d 3e 74 68 69 73 20 |ucture o|f.>this |
|00004590| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 76 61 72 69 |informat|ion vari|
|000045a0| 65 73 20 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |es based| on the |
|000045b0| 70 61 72 74 69 63 75 6c | 61 72 20 61 70 70 6c 69 |particul|ar appli|
|000045c0| 63 61 74 69 6f 6e 2c 20 | 62 75 74 20 61 6c 77 61 |cation, |but alwa|
|000045d0| 79 73 0d 3e 69 6e 63 6c | 75 64 65 73 2c 20 61 74 |ys.>incl|udes, at|
|000045e0| 20 6d 69 6e 69 6d 75 6d | 2c 20 61 73 20 69 74 73 | minimum|, as its|
|000045f0| 20 66 69 72 73 74 20 66 | 69 65 6c 64 20 61 6e 20 | first f|ield an |
|00004600| 69 64 65 6e 74 69 66 69 | 65 72 2e 0d 3e 0d 3e 50 |identifi|er..>.>P|
|00004610| 6c 65 61 73 65 20 63 6f | 6e 73 69 64 65 72 20 74 |lease co|nsider t|
|00004620| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 73 65 |he follo|wing pse|
|00004630| 75 64 6f 2d 63 6f 64 65 | 2c 20 61 73 20 49 20 61 |udo-code|, as I a|
|00004640| 6d 20 6e 6f 74 20 61 74 | 20 6d 79 20 4d 61 63 69 |m not at| my Maci|
|00004650| 6e 74 6f 73 68 20 61 74 | 20 74 68 65 0d 3e 6d 6f |ntosh at| the.>mo|
|00004660| 6d 65 6e 74 2e 0d 3e 0d | 3e 74 79 70 65 64 65 66 |ment..>.|>typedef|
|00004670| 20 73 74 72 75 63 74 20 | 4d 69 6e 57 69 6e 49 6e | struct |MinWinIn|
|00004680| 66 6f 20 7b 0d 3e 20 20 | 20 20 4f 53 54 79 70 65 |fo {.> | OSType|
|00004690| 20 69 64 65 6e 74 69 66 | 69 65 72 3b 0d 3e 7d 20 | identif|ier;.>} |
|000046a0| 4d 69 6e 57 69 6e 49 6e | 66 6f 52 65 63 6f 72 64 |MinWinIn|foRecord|
|000046b0| 2c 20 2a 4d 69 6e 57 69 | 6e 49 6e 66 6f 50 74 72 |, *MinWi|nInfoPtr|
|000046c0| 2c 20 2a 2a 4d 69 6e 57 | 69 6e 49 6e 66 6f 48 61 |, **MinW|inInfoHa|
|000046d0| 6e 64 6c 65 3b 0d 3e 0d | 3e 42 6f 6f 6c 65 61 6e |ndle;.>.|>Boolean|
|000046e0| 20 4f 77 6e 57 69 6e 64 | 6f 77 28 57 69 6e 64 6f | OwnWind|ow(Windo|
|000046f0| 77 50 74 72 20 61 57 69 | 6e 64 6f 77 29 20 7b 0d |wPtr aWi|ndow) {.|
|00004700| 3e 20 20 20 20 42 6f 6f | 6c 65 61 6e 20 6f 77 6e |> Boo|lean own|
|00004710| 57 69 6e 64 6f 77 20 3d | 20 66 61 6c 73 65 3b 0d |Window =| false;.|
|00004720| 3e 20 20 20 20 4d 69 6e | 57 69 6e 49 6e 66 6f 48 |> Min|WinInfoH|
|00004730| 61 6e 64 6c 65 20 74 68 | 65 49 6e 66 6f 48 61 6e |andle th|eInfoHan|
|00004740| 64 6c 65 3b 0d 3e 0d 3e | 20 20 20 20 69 66 20 28 |dle;.>.>| if (|
|00004750| 61 57 69 6e 64 6f 77 20 | 21 3d 20 6e 69 6c 29 20 |aWindow |!= nil) |
|00004760| 7b 20 2f 2a 20 63 61 6e | 20 6f 6e 6c 79 20 6f 77 |{ /* can| only ow|
|00004770| 6e 20 65 78 69 73 74 65 | 6e 74 20 77 69 6e 64 6f |n existe|nt windo|
|00004780| 77 73 20 2a 2f 0d 3e 20 | 20 20 20 20 20 20 20 74 |ws */.> | t|
|00004790| 68 65 49 6e 66 6f 48 61 | 6e 64 6c 65 20 3d 20 28 |heInfoHa|ndle = (|
|000047a0| 4d 69 6e 57 69 6e 49 6e | 66 6f 48 61 6e 64 6c 65 |MinWinIn|foHandle|
|000047b0| 29 47 65 74 57 52 65 66 | 43 6f 6e 28 61 57 69 6e |)GetWRef|Con(aWin|
|000047c0| 64 6f 77 29 3b 0d 3e 20 | 20 20 20 20 20 20 20 69 |dow);.> | i|
|000047d0| 66 20 28 74 68 65 49 6e | 66 6f 48 61 6e 64 6c 65 |f (theIn|foHandle|
|000047e0| 20 21 3d 20 6e 69 6c 29 | 20 7b 20 2f 2a 20 61 6e | != nil)| { /* an|
|000047f0| 64 20 77 65 20 61 6c 77 | 61 79 73 20 61 64 64 20 |d we alw|ays add |
|00004800| 61 20 72 65 66 43 6f 6e | 20 2a 2f 0d 3e 20 20 20 |a refCon| */.> |
|00004810| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 28 2a 2a | | if ((**|
|00004820| 74 68 65 49 6e 66 6f 48 | 61 6e 64 6c 65 29 2e 69 |theInfoH|andle).i|
|00004830| 64 65 6e 74 69 66 69 65 | 72 20 3d 3d 20 6b 54 68 |dentifie|r == kTh|
|00004840| 69 73 41 70 70 53 69 67 | 6e 61 74 75 72 65 29 20 |isAppSig|nature) |
|00004850| 7b 0d 0d 54 68 65 20 70 | 72 6f 62 6c 65 6d 20 69 |{..The p|roblem i|
|00004860| 73 20 74 68 61 74 20 77 | 65 20 63 61 6e 27 74 20 |s that w|e can't |
|00004870| 62 65 20 31 30 30 25 20 | 73 75 72 65 20 74 68 65 |be 100% |sure the|
|00004880| 20 52 65 66 43 6f 6e 20 | 66 69 65 6c 64 20 68 6f | RefCon |field ho|
|00004890| 6c 64 73 20 61 20 70 6f | 69 6e 74 65 72 0d 6f 72 |lds a po|inter.or|
|000048a0| 20 68 61 6e 64 6c 65 20 | 66 6f 72 20 2a 61 6c 6c | handle |for *all|
|000048b0| 2a 20 77 69 6e 64 6f 77 | 73 20 61 73 20 73 6f 6d |* window|s as som|
|000048c0| 65 20 77 69 6e 64 6f 77 | 73 20 6e 6f 74 20 63 72 |e window|s not cr|
|000048d0| 65 61 74 65 64 20 62 79 | 20 6f 75 72 20 61 70 70 |eated by| our app|
|000048e0| 6c 69 63 61 74 69 6f 6e | 0d 63 61 6e 20 61 70 70 |lication|.can app|
|000048f0| 65 61 72 20 69 6e 20 6f | 75 72 20 57 69 6e 64 6f |ear in o|ur Windo|
|00004900| 77 4c 69 73 74 2e 20 54 | 68 65 73 65 20 65 78 74 |wList. T|hese ext|
|00004910| 65 72 6e 61 6c 20 77 69 | 6e 64 6f 77 73 20 6d 61 |ernal wi|ndows ma|
|00004920| 79 20 75 73 65 20 74 68 | 65 20 52 65 66 43 6f 6e |y use th|e RefCon|
|00004930| 0d 66 69 65 6c 64 20 69 | 6e 20 61 6e 79 20 77 61 |.field i|n any wa|
|00004940| 79 20 28 65 2e 67 2e 20 | 68 6f 6c 64 20 66 6c 61 |y (e.g. |hold fla|
|00004950| 67 73 20 6f 72 20 77 68 | 61 74 65 76 65 72 29 2c |gs or wh|atever),|
|00004960| 20 6d 61 6b 69 6e 67 20 | 69 74 20 69 6d 70 6f 73 | making |it impos|
|00004970| 73 69 62 6c 65 20 74 6f | 0d 64 65 72 65 66 65 72 |sible to|.derefer|
|00004980| 65 6e 63 65 20 74 68 65 | 20 76 61 6c 75 65 20 74 |ence the| value t|
|00004990| 6f 20 63 68 65 63 6b 20 | 66 6f 72 20 74 68 65 20 |o check |for the |
|000049a0| 6d 61 67 69 63 20 63 6f | 6f 6b 69 65 2e 0d 0d 3e |magic co|okie...>|
|000049b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049c0| 6f 77 6e 57 69 6e 64 6f | 77 20 3d 20 74 72 75 65 |ownWindo|w = true|
|000049d0| 3b 20 2f 2a 20 61 6e 64 | 20 74 68 65 20 66 69 72 |; /* and| the fir|
|000049e0| 73 74 20 66 6f 75 72 20 | 62 79 74 65 73 20 6d 61 |st four |bytes ma|
|000049f0| 74 63 68 20 6f 75 72 20 | 73 69 67 20 2a 2f 0d 3e |tch our |sig */.>|
|00004a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0d 3e 20 | | }.> |
|00004a10| 20 20 20 20 20 20 20 7d | 0d 3e 20 20 20 20 7d 0d | }|.> }.|
|00004a20| 3e 20 20 20 20 72 65 74 | 75 72 6e 20 6f 77 6e 57 |> ret|urn ownW|
|00004a30| 69 6e 64 6f 77 3b 0d 3e | 7d 0d 3e 0d 3e 53 6f 20 |indow;.>|}.>.>So |
|00004a40| 77 68 65 6e 65 76 65 72 | 20 49 20 6e 65 65 64 20 |whenever| I need |
|00004a50| 74 6f 20 73 65 65 20 77 | 68 65 74 68 65 72 20 61 |to see w|hether a|
|00004a60| 20 77 69 6e 64 6f 77 20 | 69 73 20 6d 69 6e 65 20 | window |is mine |
|00004a70| 49 20 6a 75 73 74 20 63 | 61 6c 6c 20 4f 77 6e 57 |I just c|all OwnW|
|00004a80| 69 6e 64 6f 77 2e 0d 3e | 0d 3e 44 6f 65 73 20 74 |indow..>|.>Does t|
|00004a90| 68 69 73 20 68 65 6c 70 | 3f 20 4f 72 20 64 69 64 |his help|? Or did|
|00004aa0| 20 49 20 6d 69 73 73 20 | 74 68 65 20 71 75 65 73 | I miss |the ques|
|00004ab0| 74 69 6f 6e 20 65 6e 74 | 69 72 65 6c 79 3f 0d 0d |tion ent|irely?..|
|00004ac0| 53 65 65 20 61 62 6f 76 | 65 2e 0d 0d 48 6f 70 65 |See abov|e...Hope|
|00004ad0| 66 75 6c 6c 79 20 74 68 | 65 20 41 70 70 6c 65 20 |fully th|e Apple |
|00004ae0| 67 75 79 73 20 63 6f 6d | 65 20 75 70 20 77 69 74 |guys com|e up wit|
|00004af0| 68 20 61 20 6e 69 63 65 | 20 69 6d 70 72 6f 76 65 |h a nice| improve|
|00004b00| 64 20 57 69 6e 64 6f 77 | 20 4d 61 6e 61 67 65 72 |d Window| Manager|
|00004b10| 20 77 68 69 63 68 0d 73 | 75 70 70 6f 73 65 64 6c | which.s|upposedl|
|00004b20| 79 20 69 73 20 69 6e 20 | 74 68 65 20 77 6f 72 6b |y is in |the work|
|00004b30| 73 2e 20 46 72 6f 6d 20 | 77 68 61 74 20 49 27 76 |s. From |what I'v|
|00004b40| 65 20 68 65 61 72 64 20 | 69 74 20 77 69 6c 6c 20 |e heard |it will |
|00004b50| 73 75 70 70 6f 72 74 20 | 66 6c 6f 61 74 69 6e 67 |support |floating|
|00004b60| 0d 77 69 6e 64 6f 77 73 | 20 64 69 72 65 63 74 6c |.windows| directl|
|00004b70| 79 20 28 79 65 73 21 29 | 2c 20 61 6e 64 20 74 68 |y (yes!)|, and th|
|00004b80| 61 74 20 61 6c 6f 6e 65 | 20 77 69 6c 6c 20 6d 61 |at alone| will ma|
|00004b90| 6b 65 20 61 20 6c 6f 74 | 20 6f 66 20 75 67 6c 79 |ke a lot| of ugly|
|00004ba0| 20 63 6f 64 65 20 75 6e | 6e 65 65 64 65 64 2e 0d | code un|needed..|
|00004bb0| 0d 41 6e 79 6f 6e 65 20 | 65 6c 73 65 20 6d 61 64 |.Anyone |else mad|
|00004bc0| 20 61 74 20 6e 6f 74 20 | 67 65 74 74 69 6e 67 20 | at not |getting |
|00004bd0| 6d 6f 64 65 6c 65 73 73 | 20 64 69 61 6c 6f 67 73 |modeless| dialogs|
|00004be0| 20 74 6f 20 77 6f 72 6b | 20 63 6f 72 72 65 63 74 | to work| correct|
|00004bf0| 6c 79 20 74 6f 67 65 74 | 68 65 72 0d 77 69 74 68 |ly toget|her.with|
|00004c00| 20 66 6c 6f 61 74 69 6e | 67 20 77 69 6e 64 6f 77 | floatin|g window|
|00004c10| 73 3f 20 59 65 61 68 2c | 20 49 20 74 68 6f 75 67 |s? Yeah,| I thoug|
|00004c20| 68 74 20 73 6f 2e 2e 2e | 0d 2d 2d 0d 60 2e 60 2e |ht so...|.--.`.`.|
|00004c30| 20 20 20 4a 6f 6e 61 73 | 20 57 61 6c 6c 64 65 6e | Jonas| Wallden|
|00004c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c50| 20 20 20 20 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e | `.`.|`.`.`.`.|
|00004c60| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|00004c70| 60 2e 60 2e 60 2e 0d 60 | 2e 60 2e 60 2e 20 20 20 |`.`.`..`|.`.`. |
|00004c80| 49 6e 74 65 72 6e 65 74 | 3a 20 6a 6f 6e 61 73 77 |Internet|: jonasw|
|00004c90| 40 6c 79 73 61 74 6f 72 | 2e 6c 69 75 2e 73 65 20 |@lysator|.liu.se |
|00004ca0| 20 60 2e 60 2e 60 2e 60 | 2e 60 2e 60 2e 60 2e 60 | `.`.`.`|.`.`.`.`|
|00004cb0| 2e 60 2e 60 2e 60 2e 60 | 2e 60 2e 60 2e 60 2e 60 |.`.`.`.`|.`.`.`.`|
|00004cc0| 2e 0d 60 2e 60 2e 60 2e | 60 2e 20 20 20 41 70 70 |..`.`.`.|`. App|
|00004cd0| 6c 65 4c 69 6e 6b 3a 20 | 73 77 31 33 36 39 20 20 |leLink: |sw1369 |
|00004ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 60 2e | | `.|
|00004cf0| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 60 2e 60 2e |`.`.`.`.|`.`.`.`.|
|00004d00| 60 2e 60 2e 60 2e 60 2e | 60 2e 60 2e 0d 0d 2b 2b |`.`.`.`.|`.`...++|
|00004d10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004d20| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 0d 0d 3e 46 72 6f 6d |++++++++|+..>From|
|00004d30| 20 68 2b 40 6e 61 64 61 | 2e 6b 74 68 2e 73 65 20 | h+@nada|.kth.se |
|00004d40| 28 4a 6f 6e 20 57 7b 74 | 74 65 29 0d 44 61 74 65 |(Jon W{t|te).Date|
|00004d50| 3a 20 54 68 75 2c 20 30 | 31 20 53 65 70 20 31 39 |: Thu, 0|1 Sep 19|
|00004d60| 39 34 20 31 34 3a 35 35 | 3a 30 37 20 2b 30 32 30 |94 14:55|:07 +020|
|00004d70| 30 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|00004d80| 52 6f 79 61 6c 20 49 6e | 73 74 69 74 75 74 65 20 |Royal In|stitute |
|00004d90| 6f 66 20 53 6f 6d 65 74 | 68 69 6e 67 20 6f 72 20 |of Somet|hing or |
|00004da0| 6f 74 68 65 72 0d 0d 49 | 6e 20 61 72 74 69 63 6c |other..I|n articl|
|00004db0| 65 20 3c 33 34 32 74 32 | 36 24 31 69 61 40 6e 65 |e <342t2|6$1ia@ne|
|00004dc0| 77 73 79 2e 69 66 6d 2e | 6c 69 75 2e 73 65 3e 2c |wsy.ifm.|liu.se>,|
|00004dd0| 0d 6a 6f 6e 61 73 77 40 | 6c 79 73 61 74 6f 72 2e |.jonasw@|lysator.|
|00004de0| 6c 69 75 2e 73 65 20 28 | 4a 6f 6e 61 73 20 57 61 |liu.se (|Jonas Wa|
|00004df0| 6c 6c 64 65 6e 29 20 77 | 72 6f 74 65 3a 0d 0d 3e |llden) w|rote:..>|
|00004e00| 54 68 65 20 70 72 6f 62 | 6c 65 6d 20 69 73 20 74 |The prob|lem is t|
|00004e10| 68 61 74 20 77 65 20 63 | 61 6e 27 74 20 62 65 20 |hat we c|an't be |
|00004e20| 31 30 30 25 20 73 75 72 | 65 20 74 68 65 20 52 65 |100% sur|e the Re|
|00004e30| 66 43 6f 6e 20 66 69 65 | 6c 64 20 68 6f 6c 64 73 |fCon fie|ld holds|
|00004e40| 20 61 20 70 6f 69 6e 74 | 65 72 0d 3e 6f 72 20 68 | a point|er.>or h|
|00004e50| 61 6e 64 6c 65 20 66 6f | 72 20 2a 61 6c 6c 2a 20 |andle fo|r *all* |
|00004e60| 77 69 6e 64 6f 77 73 20 | 61 73 20 73 6f 6d 65 20 |windows |as some |
|00004e70| 77 69 6e 64 6f 77 73 20 | 6e 6f 74 20 63 72 65 61 |windows |not crea|
|00004e80| 74 65 64 20 62 79 20 6f | 75 72 20 61 70 70 6c 69 |ted by o|ur appli|
|00004e90| 63 61 74 69 6f 6e 0d 3e | 63 61 6e 20 61 70 70 65 |cation.>|can appe|
|00004ea0| 61 72 20 69 6e 20 6f 75 | 72 20 57 69 6e 64 6f 77 |ar in ou|r Window|
|00004eb0| 4c 69 73 74 2e 20 54 68 | 65 73 65 20 65 78 74 65 |List. Th|ese exte|
|00004ec0| 72 6e 61 6c 20 77 69 6e | 64 6f 77 73 20 6d 61 79 |rnal win|dows may|
|00004ed0| 20 75 73 65 20 74 68 65 | 20 52 65 66 43 6f 6e 0d | use the| RefCon.|
|00004ee0| 0d 41 6c 6c 20 77 69 6e | 64 6f 77 73 20 69 6e 20 |.All win|dows in |
|00004ef0| 6f 75 72 20 77 69 6e 64 | 6f 77 20 6c 69 73 74 20 |our wind|ow list |
|00004f00| 74 68 61 74 20 61 72 65 | 20 6e 6f 74 20 6f 75 72 |that are| not our|
|00004f10| 20 6f 77 6e 20 68 61 76 | 65 20 0d 6e 65 67 61 74 | own hav|e .negat|
|00004f20| 69 76 65 20 77 69 6e 64 | 6f 77 4b 69 6e 64 73 2c |ive wind|owKinds,|
|00004f30| 20 6f 72 20 61 74 20 6c | 65 61 73 74 20 77 69 6e | or at l|east win|
|00004f40| 64 6f 77 4b 69 6e 64 73 | 20 3c 20 38 2e 0d 0d 43 |dowKinds| < 8...C|
|00004f50| 68 65 65 72 73 2c 0d 0d | 09 09 09 09 09 2f 20 68 |heers,..|...../ h|
|00004f60| 2b 0d 0d 0d 2d 2d 0d 20 | 20 4a 6f 6e 20 57 e4 74 |+...--. | Jon W.t|
|00004f70| 74 65 20 28 68 2b 40 6e | 61 64 61 2e 6b 74 68 2e |te (h+@n|ada.kth.|
|00004f80| 73 65 29 2c 20 48 61 67 | 61 67 61 74 61 6e 20 31 |se), Hag|agatan 1|
|00004f90| 2c 20 31 31 33 20 34 38 | 20 53 74 6f 63 6b 68 6f |, 113 48| Stockho|
|00004fa0| 6c 6d 2c 20 53 77 65 64 | 65 6e 0d 0d 20 20 52 65 |lm, Swed|en.. Re|
|00004fb0| 61 6c 69 74 79 20 65 78 | 69 73 74 73 20 6f 6e 6c |ality ex|ists onl|
|00004fc0| 79 20 69 6e 20 79 6f 75 | 72 20 69 6d 61 67 69 6e |y in you|r imagin|
|00004fd0| 61 74 69 6f 6e 2e 0d 0d | 0d 2b 2b 2b 2b 2b 2b 2b |ation...|.+++++++|
|00004fe0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004ff0| 2b 2b 2b 2b 0d 0d 3e 46 | 72 6f 6d 20 6d 68 6c 40 |++++..>F|rom mhl@|
|00005000| 69 63 66 2e 68 72 62 2e | 63 6f 6d 20 28 4d 41 52 |icf.hrb.|com (MAR|
|00005010| 4b 20 48 2e 20 4c 49 4e | 54 4f 4e 29 0d 44 61 74 |K H. LIN|TON).Dat|
|00005020| 65 3a 20 31 20 53 65 70 | 20 39 34 20 30 38 3a 35 |e: 1 Sep| 94 08:5|
|00005030| 30 3a 32 37 20 45 53 54 | 0d 4f 72 67 61 6e 69 7a |0:27 EST|.Organiz|
|00005040| 61 74 69 6f 6e 3a 20 48 | 52 42 20 53 79 73 74 65 |ation: H|RB Syste|
|00005050| 6d 73 2c 20 49 6e 63 2e | 0d 0d 49 6e 20 61 72 74 |ms, Inc.|..In art|
|00005060| 69 63 6c 65 20 3c 33 34 | 32 74 32 36 24 31 69 61 |icle <34|2t26$1ia|
|00005070| 40 6e 65 77 73 79 2e 69 | 66 6d 2e 6c 69 75 2e 73 |@newsy.i|fm.liu.s|
|00005080| 65 3e 2c 20 6a 6f 6e 61 | 73 77 40 6c 79 73 61 74 |e>, jona|sw@lysat|
|00005090| 6f 72 2e 6c 69 75 2e 73 | 65 20 28 4a 6f 6e 61 73 |or.liu.s|e (Jonas|
|000050a0| 20 57 61 6c 6c 64 65 6e | 29 20 77 72 69 74 65 73 | Wallden|) writes|
|000050b0| 3a 0d 3e 20 6d 68 6c 40 | 69 63 66 2e 68 72 62 2e |:.> mhl@|icf.hrb.|
|000050c0| 63 6f 6d 20 28 4d 41 52 | 4b 20 48 2e 20 4c 49 4e |com (MAR|K H. LIN|
|000050d0| 54 4f 4e 29 20 77 72 69 | 74 65 73 3a 0d 3e 3e 0d |TON) wri|tes:.>>.|
|000050e0| 3e 3e 20 20 20 20 69 66 | 20 28 61 57 69 6e 64 6f |>> if| (aWindo|
|000050f0| 77 20 21 3d 20 6e 69 6c | 29 20 7b 20 2f 2a 20 63 |w != nil|) { /* c|
|00005100| 61 6e 20 6f 6e 6c 79 20 | 6f 77 6e 20 65 78 69 73 |an only |own exis|
|00005110| 74 65 6e 74 20 77 69 6e | 64 6f 77 73 20 2a 2f 0d |tent win|dows */.|
|00005120| 3e 3e 20 20 20 20 20 20 | 20 20 74 68 65 49 6e 66 |>> | theInf|
|00005130| 6f 48 61 6e 64 6c 65 20 | 3d 20 28 4d 69 6e 57 69 |oHandle |= (MinWi|
|00005140| 6e 49 6e 66 6f 48 61 6e | 64 6c 65 29 47 65 74 57 |nInfoHan|dle)GetW|
|00005150| 52 65 66 43 6f 6e 28 61 | 57 69 6e 64 6f 77 29 3b |RefCon(a|Window);|
|00005160| 0d 3e 3e 20 20 20 20 20 | 20 20 20 69 66 20 28 74 |.>> | if (t|
|00005170| 68 65 49 6e 66 6f 48 61 | 6e 64 6c 65 20 21 3d 20 |heInfoHa|ndle != |
|00005180| 6e 69 6c 29 20 7b 20 2f | 2a 20 61 6e 64 20 77 65 |nil) { /|* and we|
|00005190| 20 61 6c 77 61 79 73 20 | 61 64 64 20 61 20 72 65 | always |add a re|
|000051a0| 66 43 6f 6e 20 2a 2f 0d | 3e 3e 20 20 20 20 20 20 |fCon */.|>> |
|000051b0| 20 20 20 20 20 20 69 66 | 20 28 28 2a 2a 74 68 65 | if| ((**the|
|000051c0| 49 6e 66 6f 48 61 6e 64 | 6c 65 29 2e 69 64 65 6e |InfoHand|le).iden|
|000051d0| 74 69 66 69 65 72 20 3d | 3d 20 6b 54 68 69 73 41 |tifier =|= kThisA|
|000051e0| 70 70 53 69 67 6e 61 74 | 75 72 65 29 20 7b 0d 3e |ppSignat|ure) {.>|
|000051f0| 20 0d 3e 20 54 68 65 20 | 70 72 6f 62 6c 65 6d 20 | .> The |problem |
|00005200| 69 73 20 74 68 61 74 20 | 77 65 20 63 61 6e 27 74 |is that |we can't|
|00005210| 20 62 65 20 31 30 30 25 | 20 73 75 72 65 20 74 68 | be 100%| sure th|
|00005220| 65 20 52 65 66 43 6f 6e | 20 66 69 65 6c 64 20 68 |e RefCon| field h|
|00005230| 6f 6c 64 73 20 61 20 70 | 6f 69 6e 74 65 72 0d 3e |olds a p|ointer.>|
|00005240| 20 6f 72 20 68 61 6e 64 | 6c 65 20 66 6f 72 20 2a | or hand|le for *|
|00005250| 61 6c 6c 2a 20 77 69 6e | 64 6f 77 73 20 61 73 20 |all* win|dows as |
|00005260| 73 6f 6d 65 20 77 69 6e | 64 6f 77 73 20 6e 6f 74 |some win|dows not|
|00005270| 20 63 72 65 61 74 65 64 | 20 62 79 20 6f 75 72 20 | created| by our |
|00005280| 61 70 70 6c 69 63 61 74 | 69 6f 6e 0d 3e 20 63 61 |applicat|ion.> ca|
|00005290| 6e 20 61 70 70 65 61 72 | 20 69 6e 20 6f 75 72 20 |n appear| in our |
|000052a0| 57 69 6e 64 6f 77 4c 69 | 73 74 2e 20 54 68 65 73 |WindowLi|st. Thes|
|000052b0| 65 20 65 78 74 65 72 6e | 61 6c 20 77 69 6e 64 6f |e extern|al windo|
|000052c0| 77 73 20 6d 61 79 20 75 | 73 65 20 74 68 65 20 52 |ws may u|se the R|
|000052d0| 65 66 43 6f 6e 0d 3e 20 | 66 69 65 6c 64 20 69 6e |efCon.> |field in|
|000052e0| 20 61 6e 79 20 77 61 79 | 20 28 65 2e 67 2e 20 68 | any way| (e.g. h|
|000052f0| 6f 6c 64 20 66 6c 61 67 | 73 20 6f 72 20 77 68 61 |old flag|s or wha|
|00005300| 74 65 76 65 72 29 2c 20 | 6d 61 6b 69 6e 67 20 69 |tever), |making i|
|00005310| 74 20 69 6d 70 6f 73 73 | 69 62 6c 65 20 74 6f 0d |t imposs|ible to.|
|00005320| 3e 20 64 65 72 65 66 65 | 72 65 6e 63 65 20 74 68 |> derefe|rence th|
|00005330| 65 20 76 61 6c 75 65 20 | 74 6f 20 63 68 65 63 6b |e value |to check|
|00005340| 20 66 6f 72 20 74 68 65 | 20 6d 61 67 69 63 20 63 | for the| magic c|
|00005350| 6f 6f 6b 69 65 2e 0d 3e | 20 0d 0d 4a 6f 6e 61 73 |ookie..>| ..Jonas|
|00005360| 2c 0d 20 20 20 20 43 6f | 72 72 65 63 74 20 6d 65 |,. Co|rrect me|
|00005370| 20 69 66 20 49 27 6d 20 | 77 72 6f 6e 67 20 68 65 | if I'm |wrong he|
|00005380| 72 65 2e 20 49 20 64 69 | 64 20 6e 6f 74 20 73 61 |re. I di|d not sa|
|00005390| 79 20 74 68 61 74 20 74 | 68 65 20 72 65 66 43 6f |y that t|he refCo|
|000053a0| 6e 20 57 41 53 20 61 20 | 68 61 6e 64 6c 65 2e 0d |n WAS a |handle..|
|000053b0| 54 68 65 20 63 61 73 74 | 20 6f 6e 20 74 68 65 20 |The cast| on the |
|000053c0| 47 65 74 57 52 65 66 43 | 6f 6e 20 74 65 6c 6c 73 |GetWRefC|on tells|
|000053d0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 20 74 6f | the com|piler to|
|000053e0| 20 41 53 53 55 4d 45 20 | 74 68 61 74 20 74 68 65 | ASSUME |that the|
|000053f0| 20 72 65 66 43 6f 6e 20 | 69 73 0d 61 20 68 61 6e | refCon |is.a han|
|00005400| 64 6c 65 2e 20 49 66 20 | 69 74 20 69 73 20 66 6c |dle. If |it is fl|
|00005410| 61 67 73 20 6f 72 20 6d | 61 79 62 65 20 61 20 68 |ags or m|aybe a h|
|00005420| 61 6e 64 6c 65 20 74 6f | 20 61 6e 6f 74 68 65 72 |andle to| another|
|00005430| 20 74 79 70 65 20 6f 66 | 20 73 74 72 75 63 74 75 | type of| structu|
|00005440| 72 65 20 75 73 65 64 20 | 62 79 0d 61 6e 6f 74 68 |re used |by.anoth|
|00005450| 65 72 20 74 79 70 65 20 | 6f 66 20 77 69 6e 64 6f |er type |of windo|
|00005460| 77 2e 20 48 4f 57 45 56 | 45 52 2c 20 69 74 20 69 |w. HOWEV|ER, it i|
|00005470| 73 20 68 69 67 68 6c 79 | 20 75 6e 6c 69 6b 65 6c |s highly| unlikel|
|00005480| 79 20 74 68 61 74 20 74 | 68 65 20 66 69 72 73 74 |y that t|he first|
|00005490| 20 66 6f 75 72 0d 62 79 | 74 65 73 20 6f 66 20 74 | four.by|tes of t|
|000054a0| 68 65 20 6d 65 6d 6f 72 | 79 20 61 72 72 69 76 65 |he memor|y arrive|
|000054b0| 64 20 61 74 20 62 79 20 | 64 6f 75 62 6c 65 20 64 |d at by |double d|
|000054c0| 65 2d 72 65 66 65 72 65 | 6e 63 69 6e 67 20 28 2a |e-refere|ncing (*|
|000054d0| 2a 29 20 74 68 65 20 72 | 65 66 43 6f 6e 20 77 69 |*) the r|efCon wi|
|000054e0| 6c 6c 0d 63 6f 6e 74 61 | 69 6e 20 6d 79 20 61 70 |ll.conta|in my ap|
|000054f0| 70 6c 69 63 61 74 69 6f | 6e 73 20 73 69 67 6e 61 |plicatio|ns signa|
|00005500| 74 75 72 65 2c 20 77 68 | 65 74 68 65 72 20 74 68 |ture, wh|ether th|
|00005510| 65 20 61 73 73 75 6d 70 | 74 69 6f 6e 20 77 61 73 |e assump|tion was|
|00005520| 20 74 72 75 65 20 6f 72 | 20 6e 6f 74 2c 0d 55 4e | true or| not,.UN|
|00005530| 4c 45 53 53 20 74 68 69 | 73 20 69 73 20 6f 6e 65 |LESS thi|s is one|
|00005540| 20 6f 66 20 6d 79 20 77 | 69 6e 64 6f 77 73 2e 0d | of my w|indows..|
|00005550| 0d 42 54 57 20 6d 79 20 | 61 70 70 6c 69 63 61 74 |.BTW my |applicat|
|00005560| 69 6f 6e 73 20 72 65 71 | 75 69 72 65 20 53 79 73 |ions req|uire Sys|
|00005570| 74 65 6d 20 37 20 61 6e | 64 20 61 74 20 6c 65 61 |tem 7 an|d at lea|
|00005580| 73 74 20 61 20 36 38 30 | 33 30 20 74 6f 20 72 75 |st a 680|30 to ru|
|00005590| 6e 2c 20 73 6f 20 49 20 | 64 6f 20 6e 6f 74 0d 63 |n, so I |do not.c|
|000055a0| 61 72 65 20 69 66 20 69 | 6e 20 6d 79 20 28 2a 2a |are if i|n my (**|
|000055b0| 29 20 49 20 63 6f 6d 65 | 20 61 63 72 6f 73 73 20 |) I come| across |
|000055c0| 61 6e 20 6f 64 64 20 61 | 64 64 72 65 73 73 20 3b |an odd a|ddress ;|
|000055d0| 5e 29 0d 0d 4d 61 72 6b | 0d 0d 2b 2b 2b 2b 2b 2b |^)..Mark|..++++++|
|000055e0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000055f0| 2b 2b 2b 2b 2b 0d 0d 3e | 46 72 6f 6d 20 64 61 7a |+++++..>|From daz|
|00005600| 75 6d 61 40 63 63 6f 2e | 63 61 6c 74 65 63 68 2e |uma@cco.|caltech.|
|00005610| 65 64 75 20 28 44 61 6e | 69 65 6c 20 41 7a 75 6d |edu (Dan|iel Azum|
|00005620| 61 29 0d 44 61 74 65 3a | 20 54 68 75 2c 20 30 31 |a).Date:| Thu, 01|
|00005630| 20 53 65 70 20 31 39 39 | 34 20 30 38 3a 30 36 3a | Sep 199|4 08:06:|
|00005640| 32 39 20 2d 30 37 30 30 | 0d 4f 72 67 61 6e 69 7a |29 -0700|.Organiz|
|00005650| 61 74 69 6f 6e 3a 20 43 | 61 6c 69 66 6f 72 6e 69 |ation: C|aliforni|
|00005660| 61 20 49 6e 73 74 69 74 | 75 74 65 20 6f 66 20 54 |a Instit|ute of T|
|00005670| 65 63 68 6e 6f 6c 6f 67 | 79 0d 0d 6d 68 6c 40 69 |echnolog|y..mhl@i|
|00005680| 63 66 2e 68 72 62 2e 63 | 6f 6d 20 28 4d 41 52 4b |cf.hrb.c|om (MARK|
|00005690| 20 48 2e 20 4c 49 4e 54 | 4f 4e 29 20 77 72 6f 74 | H. LINT|ON) wrot|
|000056a0| 65 3a 0d 0d 3e 20 20 20 | 20 20 43 6f 72 72 65 63 |e:..> | Correc|
|000056b0| 74 20 6d 65 20 69 66 20 | 49 27 6d 20 77 72 6f 6e |t me if |I'm wron|
|000056c0| 67 20 68 65 72 65 2e 20 | 49 20 64 69 64 20 6e 6f |g here. |I did no|
|000056d0| 74 20 73 61 79 20 74 68 | 61 74 20 74 68 65 20 72 |t say th|at the r|
|000056e0| 65 66 43 6f 6e 20 57 41 | 53 20 61 20 68 61 6e 64 |efCon WA|S a hand|
|000056f0| 6c 65 2e 0d 3e 20 54 68 | 65 20 63 61 73 74 20 6f |le..> Th|e cast o|
|00005700| 6e 20 74 68 65 20 47 65 | 74 57 52 65 66 43 6f 6e |n the Ge|tWRefCon|
|00005710| 20 74 65 6c 6c 73 20 74 | 68 65 20 63 6f 6d 70 69 | tells t|he compi|
|00005720| 6c 65 72 20 74 6f 20 41 | 53 53 55 4d 45 20 74 68 |ler to A|SSUME th|
|00005730| 61 74 20 74 68 65 20 72 | 65 66 43 6f 6e 20 69 73 |at the r|efCon is|
|00005740| 0d 3e 20 61 20 68 61 6e | 64 6c 65 2e 20 49 66 20 |.> a han|dle. If |
|00005750| 69 74 20 69 73 20 66 6c | 61 67 73 20 6f 72 20 6d |it is fl|ags or m|
|00005760| 61 79 62 65 20 61 20 68 | 61 6e 64 6c 65 20 74 6f |aybe a h|andle to|
|00005770| 20 61 6e 6f 74 68 65 72 | 20 74 79 70 65 20 6f 66 | another| type of|
|00005780| 20 73 74 72 75 63 74 75 | 72 65 20 75 73 65 64 0d | structu|re used.|
|00005790| 3e 20 62 79 20 61 6e 6f | 74 68 65 72 20 74 79 70 |> by ano|ther typ|
|000057a0| 65 20 6f 66 20 77 69 6e | 64 6f 77 2e 20 48 4f 57 |e of win|dow. HOW|
|000057b0| 45 56 45 52 2c 20 69 74 | 20 69 73 20 68 69 67 68 |EVER, it| is high|
|000057c0| 6c 79 20 75 6e 6c 69 6b | 65 6c 79 20 74 68 61 74 |ly unlik|ely that|
|000057d0| 20 74 68 65 20 66 69 72 | 73 74 20 66 6f 75 72 0d | the fir|st four.|
|000057e0| 3e 20 62 79 74 65 73 20 | 6f 66 20 74 68 65 20 6d |> bytes |of the m|
|000057f0| 65 6d 6f 72 79 20 61 72 | 72 69 76 65 64 20 61 74 |emory ar|rived at|
|00005800| 20 62 79 20 64 6f 75 62 | 6c 65 20 64 65 2d 72 65 | by doub|le de-re|
|00005810| 66 65 72 65 6e 63 69 6e | 67 20 28 2a 2a 29 20 74 |ferencin|g (**) t|
|00005820| 68 65 20 72 65 66 43 6f | 6e 20 77 69 6c 6c 0d 3e |he refCo|n will.>|
|00005830| 20 63 6f 6e 74 61 69 6e | 20 6d 79 20 61 70 70 6c | contain| my appl|
|00005840| 69 63 61 74 69 6f 6e 73 | 20 73 69 67 6e 61 74 75 |ications| signatu|
|00005850| 72 65 2c 20 77 68 65 74 | 68 65 72 20 74 68 65 20 |re, whet|her the |
|00005860| 61 73 73 75 6d 70 74 69 | 6f 6e 20 77 61 73 20 74 |assumpti|on was t|
|00005870| 72 75 65 20 6f 72 20 6e | 6f 74 2c 0d 3e 20 55 4e |rue or n|ot,.> UN|
|00005880| 4c 45 53 53 20 74 68 69 | 73 20 69 73 20 6f 6e 65 |LESS thi|s is one|
|00005890| 20 6f 66 20 6d 79 20 77 | 69 6e 64 6f 77 73 2e 0d | of my w|indows..|
|000058a0| 3e 20 0d 3e 20 42 54 57 | 20 6d 79 20 61 70 70 6c |> .> BTW| my appl|
|000058b0| 69 63 61 74 69 6f 6e 73 | 20 72 65 71 75 69 72 65 |ications| require|
|000058c0| 20 53 79 73 74 65 6d 20 | 37 20 61 6e 64 20 61 74 | System |7 and at|
|000058d0| 20 6c 65 61 73 74 20 61 | 20 36 38 30 33 30 20 74 | least a| 68030 t|
|000058e0| 6f 20 72 75 6e 2c 20 73 | 6f 20 49 20 64 6f 20 6e |o run, s|o I do n|
|000058f0| 6f 74 0d 3e 20 63 61 72 | 65 20 69 66 20 69 6e 20 |ot.> car|e if in |
|00005900| 6d 79 20 28 2a 2a 29 20 | 49 20 63 6f 6d 65 20 61 |my (**) |I come a|
|00005910| 63 72 6f 73 73 20 61 6e | 20 6f 64 64 20 61 64 64 |cross an| odd add|
|00005920| 72 65 73 73 20 3b 5e 29 | 0d 0d 59 6f 75 20 73 74 |ress ;^)|..You st|
|00005930| 69 6c 6c 20 68 61 76 65 | 20 74 6f 20 77 6f 72 72 |ill have| to worr|
|00005940| 79 2c 20 65 76 65 6e 20 | 69 66 20 79 6f 75 20 72 |y, even |if you r|
|00005950| 65 71 75 69 72 65 20 61 | 6e 20 27 30 32 30 2f 27 |equire a|n '020/'|
|00005960| 30 33 30 2e 20 54 72 79 | 69 6e 67 20 74 6f 0d 64 |030. Try|ing to.d|
|00005970| 65 72 65 66 65 72 65 6e | 63 65 20 61 64 64 72 65 |ereferen|ce addre|
|00005980| 73 73 65 73 20 69 6e 20 | 61 20 63 65 72 74 61 69 |sses in |a certai|
|00005990| 6e 20 72 61 6e 67 65 2d | 2d 20 49 20 64 6f 6e 27 |n range-|- I don'|
|000059a0| 74 20 6b 6e 6f 77 20 74 | 68 65 20 72 61 6e 67 65 |t know t|he range|
|000059b0| 2c 20 62 75 74 20 74 68 | 65 0d 66 61 6d 6f 75 73 |, but th|e.famous|
|000059c0| 20 63 6f 6e 73 74 61 6e | 74 20 30 78 35 30 46 46 | constan|t 0x50FF|
|000059d0| 43 30 30 31 20 69 73 20 | 77 69 74 68 69 6e 20 69 |C001 is |within i|
|000059e0| 74 2d 2d 20 77 69 6c 6c | 20 63 61 75 73 65 20 61 |t-- will| cause a|
|000059f0| 20 62 75 73 20 65 72 72 | 6f 72 2e 0d 0d 57 68 61 | bus err|or...Wha|
|00005a00| 74 20 49 27 76 65 20 65 | 6e 64 65 64 20 75 70 20 |t I've e|nded up |
|00005a10| 64 6f 69 6e 67 20 69 73 | 20 6b 65 65 70 69 6e 67 |doing is| keeping|
|00005a20| 20 6d 79 20 6f 77 6e 20 | 64 61 74 61 20 73 74 72 | my own |data str|
|00005a30| 75 63 74 75 72 65 20 6c | 69 73 74 69 6e 67 20 61 |ucture l|isting a|
|00005a40| 6c 6c 20 74 68 65 0d 77 | 69 6e 64 6f 77 73 20 49 |ll the.w|indows I|
|00005a50| 20 22 6b 6e 6f 77 20 61 | 62 6f 75 74 22 2c 20 69 | "know a|bout", i|
|00005a60| 6e 63 6c 75 64 69 6e 67 | 20 6d 6f 64 65 6c 65 73 |ncluding| modeles|
|00005a70| 73 20 64 69 61 6c 6f 67 | 73 2e 20 4d 79 20 61 72 |s dialog|s. My ar|
|00005a80| 72 61 79 20 6b 65 65 70 | 73 20 74 68 65 0d 57 69 |ray keep|s the.Wi|
|00005a90| 6e 64 6f 77 50 74 72 2c | 20 61 20 63 6f 6e 73 74 |ndowPtr,| a const|
|00005aa0| 61 6e 74 20 64 65 73 63 | 72 69 62 69 6e 67 20 74 |ant desc|ribing t|
|00005ab0| 68 65 20 6b 69 6e 64 20 | 6f 66 20 77 69 6e 64 6f |he kind |of windo|
|00005ac0| 77 2c 20 61 6e 64 20 73 | 6f 6d 65 20 6f 74 68 65 |w, and s|ome othe|
|00005ad0| 72 20 66 69 65 6c 64 73 | 0d 63 6f 6e 74 61 69 6e |r fields|.contain|
|00005ae0| 69 6e 67 20 76 61 72 69 | 6f 75 73 20 6f 74 68 65 |ing vari|ous othe|
|00005af0| 72 20 69 6e 66 6f 2e 20 | 54 68 65 6e 2c 20 77 68 |r info. |Then, wh|
|00005b00| 65 6e 20 49 20 6e 65 65 | 64 20 74 6f 20 6b 6e 6f |en I nee|d to kno|
|00005b10| 77 20 73 6f 6d 65 74 68 | 69 6e 67 20 61 62 6f 75 |w someth|ing abou|
|00005b20| 74 20 61 0d 70 61 72 74 | 69 63 75 6c 61 72 20 77 |t a.part|icular w|
|00005b30| 69 6e 64 6f 77 20 28 73 | 61 79 2c 20 66 72 6f 6d |indow (s|ay, from|
|00005b40| 20 46 72 6f 6e 74 57 69 | 6e 64 6f 77 28 29 29 2c | FrontWi|ndow()),|
|00005b50| 20 49 20 6c 6f 6f 6b 20 | 74 68 65 20 57 69 6e 64 | I look |the Wind|
|00005b60| 6f 77 50 74 72 20 75 70 | 20 69 6e 0d 74 68 65 20 |owPtr up| in.the |
|00005b70| 74 61 62 6c 65 20 61 6e | 64 20 73 6e 61 74 63 68 |table an|d snatch|
|00005b80| 20 77 68 61 74 65 76 65 | 72 20 69 6e 66 6f 20 49 | whateve|r info I|
|00005b90| 20 6e 65 65 64 2e 20 49 | 66 20 74 68 65 20 57 69 | need. I|f the Wi|
|00005ba0| 6e 64 6f 77 50 74 72 20 | 69 73 6e 27 74 20 74 68 |ndowPtr |isn't th|
|00005bb0| 65 72 65 2c 20 49 0d 6b | 6e 6f 77 20 69 74 27 73 |ere, I.k|now it's|
|00005bc0| 20 61 20 77 69 6e 64 6f | 77 20 73 6f 6d 65 6f 6e | a windo|w someon|
|00005bd0| 65 20 65 6c 73 65 20 72 | 75 64 65 6c 79 20 3a 29 |e else r|udely :)|
|00005be0| 20 73 74 75 63 6b 20 69 | 6e 74 6f 20 6d 79 20 77 | stuck i|nto my w|
|00005bf0| 69 6e 64 6f 77 20 6c 69 | 73 74 2e 20 4e 6f 74 0d |indow li|st. Not.|
|00005c00| 74 68 65 20 6d 6f 73 74 | 20 65 66 66 69 63 69 65 |the most| efficie|
|00005c10| 6e 74 20 77 61 79 20 6f | 66 20 64 6f 69 6e 67 20 |nt way o|f doing |
|00005c20| 74 68 69 6e 67 73 2c 20 | 49 27 6d 20 73 75 72 65 |things, |I'm sure|
|00005c30| 2c 20 62 75 74 20 49 20 | 74 68 69 6e 6b 20 69 74 |, but I |think it|
|00005c40| 27 73 0d 72 65 6c 61 74 | 69 76 65 6c 79 20 75 6e |'s.relat|ively un|
|00005c50| 2d 62 72 65 61 6b 61 62 | 6c 65 2e 0d 0d 41 6e 64 |-breakab|le...And|
|00005c60| 2c 20 6f 66 20 63 6f 75 | 72 73 65 2c 20 6c 61 74 |, of cou|rse, lat|
|00005c70| 65 72 20 49 20 63 61 6e | 20 72 65 70 6c 61 63 65 |er I can| replace|
|00005c80| 20 74 68 65 20 57 69 6e | 64 6f 77 50 74 72 20 66 | the Win|dowPtr f|
|00005c90| 69 65 6c 64 20 77 69 74 | 68 20 61 20 57 69 6e 64 |ield wit|h a Wind|
|00005ca0| 6f 77 52 65 66 0d 61 6e | 64 20 68 61 76 65 20 69 |owRef.an|d have i|
|00005cb0| 74 20 77 6f 72 6b 20 74 | 68 65 20 73 61 6d 65 20 |t work t|he same |
|00005cc0| 77 61 79 2e 0d 0d 44 61 | 6e 0d 0d 2d 20 2d 2d 2d |way...Da|n..- ---|
|00005cd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005ce0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005cf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005d00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 20 20 |--------|-----. |
|00005d10| 44 61 6e 69 65 6c 20 41 | 7a 75 6d 61 20 20 20 20 |Daniel A|zuma |
|00005d20| 20 20 20 20 20 20 20 20 | 7c 20 22 52 65 6a 6f 69 | || "Rejoi|
|00005d30| 63 65 20 69 6e 20 74 68 | 65 20 4c 6f 72 64 20 61 |ce in th|e Lord a|
|00005d40| 6c 77 61 79 73 3b 20 61 | 67 61 69 6e 20 49 0d 20 |lways; a|gain I. |
|00005d50| 20 43 61 6c 74 65 63 68 | 20 20 20 20 20 20 20 20 | Caltech| |
|00005d60| 20 20 20 20 20 20 20 20 | 20 7c 20 20 77 69 6c 6c | | | will|
|00005d70| 20 73 61 79 2c 20 52 65 | 6a 6f 69 63 65 2e 2e 2e | say, Re|joice...|
|00005d80| 22 0d 20 20 64 61 7a 75 | 6d 61 40 63 63 6f 2e 63 |". dazu|ma@cco.c|
|00005d90| 61 6c 74 65 63 68 2e 65 | 64 75 20 20 7c 20 20 20 |altech.e|du | |
|00005da0| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 50 68 69 | | --Phi|
|00005db0| 6c 69 70 70 69 61 6e 73 | 20 34 3a 34 0d 2d 20 2d |lippians| 4:4.- -|
|00005dc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005dd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005de0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005df0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00005e00| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|00005e10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|00005e20| 72 6f 6d 20 6a 6f 6e 61 | 73 77 40 6c 79 73 61 74 |rom jona|sw@lysat|
|00005e30| 6f 72 2e 6c 69 75 2e 73 | 65 20 28 4a 6f 6e 61 73 |or.liu.s|e (Jonas|
|00005e40| 20 57 61 6c 6c 64 65 6e | 29 0d 44 61 74 65 3a 20 | Wallden|).Date: |
|00005e50| 31 20 53 65 70 20 31 39 | 39 34 20 31 35 3a 35 34 |1 Sep 19|94 15:54|
|00005e60| 3a 31 35 20 47 4d 54 0d | 4f 72 67 61 6e 69 7a 61 |:15 GMT.|Organiza|
|00005e70| 74 69 6f 6e 3a 20 28 6e | 6f 6e 65 29 0d 0d 6d 68 |tion: (n|one)..mh|
|00005e80| 6c 40 69 63 66 2e 68 72 | 62 2e 63 6f 6d 20 28 4d |l@icf.hr|b.com (M|
|00005e90| 41 52 4b 20 48 2e 20 4c | 49 4e 54 4f 4e 29 20 77 |ARK H. L|INTON) w|
|00005ea0| 72 69 74 65 73 3a 0d 0d | 3e 49 6e 20 61 72 74 69 |rites:..|>In arti|
|00005eb0| 63 6c 65 20 3c 33 34 32 | 74 32 36 24 31 69 61 40 |cle <342|t26$1ia@|
|00005ec0| 6e 65 77 73 79 2e 69 66 | 6d 2e 6c 69 75 2e 73 65 |newsy.if|m.liu.se|
|00005ed0| 3e 2c 20 6a 6f 6e 61 73 | 77 40 6c 79 73 61 74 6f |>, jonas|w@lysato|
|00005ee0| 72 2e 6c 69 75 2e 73 65 | 20 28 4a 6f 6e 61 73 20 |r.liu.se| (Jonas |
|00005ef0| 57 61 6c 6c 64 65 6e 29 | 20 77 72 69 74 65 73 3a |Wallden)| writes:|
|00005f00| 0d 3e 3e 20 6d 68 6c 40 | 69 63 66 2e 68 72 62 2e |.>> mhl@|icf.hrb.|
|00005f10| 63 6f 6d 20 28 4d 41 52 | 4b 20 48 2e 20 4c 49 4e |com (MAR|K H. LIN|
|00005f20| 54 4f 4e 29 20 77 72 69 | 74 65 73 3a 0d 3e 3e 3e |TON) wri|tes:.>>>|
|00005f30| 0d 3e 3e 3e 20 20 20 20 | 69 66 20 28 61 57 69 6e |.>>> |if (aWin|
|00005f40| 64 6f 77 20 21 3d 20 6e | 69 6c 29 20 7b 20 2f 2a |dow != n|il) { /*|
|00005f50| 20 63 61 6e 20 6f 6e 6c | 79 20 6f 77 6e 20 65 78 | can onl|y own ex|
|00005f60| 69 73 74 65 6e 74 20 77 | 69 6e 64 6f 77 73 20 2a |istent w|indows *|
|00005f70| 2f 0d 3e 3e 3e 20 20 20 | 20 20 20 20 20 74 68 65 |/.>>> | the|
|00005f80| 49 6e 66 6f 48 61 6e 64 | 6c 65 20 3d 20 28 4d 69 |InfoHand|le = (Mi|
|00005f90| 6e 57 69 6e 49 6e 66 6f | 48 61 6e 64 6c 65 29 47 |nWinInfo|Handle)G|
|00005fa0| 65 74 57 52 65 66 43 6f | 6e 28 61 57 69 6e 64 6f |etWRefCo|n(aWindo|
|00005fb0| 77 29 3b 0d 3e 3e 3e 20 | 20 20 20 20 20 20 20 69 |w);.>>> | i|
|00005fc0| 66 20 28 74 68 65 49 6e | 66 6f 48 61 6e 64 6c 65 |f (theIn|foHandle|
|00005fd0| 20 21 3d 20 6e 69 6c 29 | 20 7b 20 2f 2a 20 61 6e | != nil)| { /* an|
|00005fe0| 64 20 77 65 20 61 6c 77 | 61 79 73 20 61 64 64 20 |d we alw|ays add |
|00005ff0| 61 20 72 65 66 43 6f 6e | 20 2a 2f 0d 3e 3e 3e 20 |a refCon| */.>>> |
|00006000| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 28 | | if ((|
|00006010| 2a 2a 74 68 65 49 6e 66 | 6f 48 61 6e 64 6c 65 29 |**theInf|oHandle)|
|00006020| 2e 69 64 65 6e 74 69 66 | 69 65 72 20 3d 3d 20 6b |.identif|ier == k|
|00006030| 54 68 69 73 41 70 70 53 | 69 67 6e 61 74 75 72 65 |ThisAppS|ignature|
|00006040| 29 20 7b 0d 3e 3e 20 0d | 3e 3e 20 54 68 65 20 70 |) {.>> .|>> The p|
|00006050| 72 6f 62 6c 65 6d 20 69 | 73 20 74 68 61 74 20 77 |roblem i|s that w|
|00006060| 65 20 63 61 6e 27 74 20 | 62 65 20 31 30 30 25 20 |e can't |be 100% |
|00006070| 73 75 72 65 20 74 68 65 | 20 52 65 66 43 6f 6e 20 |sure the| RefCon |
|00006080| 66 69 65 6c 64 20 68 6f | 6c 64 73 20 61 20 70 6f |field ho|lds a po|
|00006090| 69 6e 74 65 72 0d 3e 3e | 20 6f 72 20 68 61 6e 64 |inter.>>| or hand|
|000060a0| 6c 65 20 66 6f 72 20 2a | 61 6c 6c 2a 20 77 69 6e |le for *|all* win|
|000060b0| 64 6f 77 73 20 61 73 20 | 73 6f 6d 65 20 77 69 6e |dows as |some win|
|000060c0| 64 6f 77 73 20 6e 6f 74 | 20 63 72 65 61 74 65 64 |dows not| created|
|000060d0| 20 62 79 20 6f 75 72 20 | 61 70 70 6c 69 63 61 74 | by our |applicat|
|000060e0| 69 6f 6e 0d 3e 3e 20 63 | 61 6e 20 61 70 70 65 61 |ion.>> c|an appea|
|000060f0| 72 20 69 6e 20 6f 75 72 | 20 57 69 6e 64 6f 77 4c |r in our| WindowL|
|00006100| 69 73 74 2e 20 54 68 65 | 73 65 20 65 78 74 65 72 |ist. The|se exter|
|00006110| 6e 61 6c 20 77 69 6e 64 | 6f 77 73 20 6d 61 79 20 |nal wind|ows may |
|00006120| 75 73 65 20 74 68 65 20 | 52 65 66 43 6f 6e 0d 3e |use the |RefCon.>|
|00006130| 3e 20 66 69 65 6c 64 20 | 69 6e 20 61 6e 79 20 77 |> field |in any w|
|00006140| 61 79 20 28 65 2e 67 2e | 20 68 6f 6c 64 20 66 6c |ay (e.g.| hold fl|
|00006150| 61 67 73 20 6f 72 20 77 | 68 61 74 65 76 65 72 29 |ags or w|hatever)|
|00006160| 2c 20 6d 61 6b 69 6e 67 | 20 69 74 20 69 6d 70 6f |, making| it impo|
|00006170| 73 73 69 62 6c 65 20 74 | 6f 0d 3e 3e 20 64 65 72 |ssible t|o.>> der|
|00006180| 65 66 65 72 65 6e 63 65 | 20 74 68 65 20 76 61 6c |eference| the val|
|00006190| 75 65 20 74 6f 20 63 68 | 65 63 6b 20 66 6f 72 20 |ue to ch|eck for |
|000061a0| 74 68 65 20 6d 61 67 69 | 63 20 63 6f 6f 6b 69 65 |the magi|c cookie|
|000061b0| 2e 0d 3e 3e 20 0d 3e 0d | 3e 4a 6f 6e 61 73 2c 0d |..>> .>.|>Jonas,.|
|000061c0| 3e 20 20 20 20 43 6f 72 | 72 65 63 74 20 6d 65 20 |> Cor|rect me |
|000061d0| 69 66 20 49 27 6d 20 77 | 72 6f 6e 67 20 68 65 72 |if I'm w|rong her|
|000061e0| 65 2e 20 49 20 64 69 64 | 20 6e 6f 74 20 73 61 79 |e. I did| not say|
|000061f0| 20 74 68 61 74 20 74 68 | 65 20 72 65 66 43 6f 6e | that th|e refCon|
|00006200| 20 57 41 53 20 61 20 68 | 61 6e 64 6c 65 2e 0d 3e | WAS a h|andle..>|
|00006210| 54 68 65 20 63 61 73 74 | 20 6f 6e 20 74 68 65 20 |The cast| on the |
|00006220| 47 65 74 57 52 65 66 43 | 6f 6e 20 74 65 6c 6c 73 |GetWRefC|on tells|
|00006230| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 20 74 6f | the com|piler to|
|00006240| 20 41 53 53 55 4d 45 20 | 74 68 61 74 20 74 68 65 | ASSUME |that the|
|00006250| 20 72 65 66 43 6f 6e 20 | 69 73 0d 3e 61 20 68 61 | refCon |is.>a ha|
|00006260| 6e 64 6c 65 2e 20 49 66 | 20 69 74 20 69 73 20 66 |ndle. If| it is f|
|00006270| 6c 61 67 73 20 6f 72 20 | 6d 61 79 62 65 20 61 20 |lags or |maybe a |
|00006280| 68 61 6e 64 6c 65 20 74 | 6f 20 61 6e 6f 74 68 65 |handle t|o anothe|
|00006290| 72 20 74 79 70 65 20 6f | 66 20 73 74 72 75 63 74 |r type o|f struct|
|000062a0| 75 72 65 20 75 73 65 64 | 0d 3e 62 79 20 61 6e 6f |ure used|.>by ano|
|000062b0| 74 68 65 72 20 74 79 70 | 65 20 6f 66 20 77 69 6e |ther typ|e of win|
|000062c0| 64 6f 77 2e 20 48 4f 57 | 45 56 45 52 2c 20 69 74 |dow. HOW|EVER, it|
|000062d0| 20 69 73 20 68 69 67 68 | 6c 79 20 75 6e 6c 69 6b | is high|ly unlik|
|000062e0| 65 6c 79 20 74 68 61 74 | 20 74 68 65 20 66 69 72 |ely that| the fir|
|000062f0| 73 74 20 66 6f 75 72 0d | 3e 62 79 74 65 73 20 6f |st four.|>bytes o|
|00006300| 66 20 74 68 65 20 6d 65 | 6d 6f 72 79 20 61 72 72 |f the me|mory arr|
|00006310| 69 76 65 64 20 61 74 20 | 62 79 20 64 6f 75 62 6c |ived at |by doubl|
|00006320| 65 20 64 65 2d 72 65 66 | 65 72 65 6e 63 69 6e 67 |e de-ref|erencing|
|00006330| 20 28 2a 2a 29 20 74 68 | 65 20 72 65 66 43 6f 6e | (**) th|e refCon|
|00006340| 20 77 69 6c 6c 0d 3e 63 | 6f 6e 74 61 69 6e 20 6d | will.>c|ontain m|
|00006350| 79 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 73 |y applic|ations s|
|00006360| 69 67 6e 61 74 75 72 65 | 2c 20 77 68 65 74 68 65 |ignature|, whethe|
|00006370| 72 20 74 68 65 20 61 73 | 73 75 6d 70 74 69 6f 6e |r the as|sumption|
|00006380| 20 77 61 73 20 74 72 75 | 65 20 6f 72 20 6e 6f 74 | was tru|e or not|
|00006390| 2c 0d 3e 55 4e 4c 45 53 | 53 20 74 68 69 73 20 69 |,.>UNLES|S this i|
|000063a0| 73 20 6f 6e 65 20 6f 66 | 20 6d 79 20 77 69 6e 64 |s one of| my wind|
|000063b0| 6f 77 73 2e 0d 3e 0d 3e | 42 54 57 20 6d 79 20 61 |ows..>.>|BTW my a|
|000063c0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 72 65 71 75 |pplicati|ons requ|
|000063d0| 69 72 65 20 53 79 73 74 | 65 6d 20 37 20 61 6e 64 |ire Syst|em 7 and|
|000063e0| 20 61 74 20 6c 65 61 73 | 74 20 61 20 36 38 30 33 | at leas|t a 6803|
|000063f0| 30 20 74 6f 20 72 75 6e | 2c 20 73 6f 20 49 20 64 |0 to run|, so I d|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.